[thelist] ASP, HTTP_REFERRER, Session questions

Beau Hartshorne beau at members.evolt.org
Fri Sep 21 03:41:34 CDT 2001


Aardvark, Anthony thank you. This is what I think I should do:

Every page (except the login page) updates a Session object like so:

<%
Session.Contents("URL") = _
strRequest.ServerVariables("SCRIPT_NAME") + "?" _
+ Request.ServerVariables("QUERY_STRING")
%>

And on the authentication.asp page:

<%
If Session.Contents("URL") = Nothing Then
	Response.Redirect("index.asp")
Else
	Response.Redirect(Session.Contents("URL")
End If
%>





More information about the thelist mailing list