You can get the last page the user visited from a server
variable. I can't remember what it's called. Use this code
to loop through all the server variables...
Function GetSrvVariables() as String
Dim retString as String
Dim loop1, loop2 As Integer
Dim arr1(), arr2() As String
Dim coll As NameValueCollection
coll=Request.ServerVariables ' Load ServerVariable
collection into NameValueCollection object.
arr1 = coll.AllKeys ' Put names of all keys into a string
array.
For loop1 = 0 To UBound(arr1)
retString = retString & arr1(loop1)
arr2 = coll.GetValues(loop1) ' Get all values under this
key.
For loop2 = 0 To UBound(arr2)
retString = retString & ": " & arr2(loop2) & "<br>"
Next loop2
Next loop1