|
Subject:
|
Problem In Saving Previous Url
|
|
Posted By:
|
zaeem
|
Post Date:
|
11/12/2003 5:58:26 AM
|
Hello everybody, i have different pages in my web sites. Unauthorizes Access is not allowed to any page. If somebody enters that page without signing in, that page redirect user to the Logon.asp. Now the problem is that how I can i get the URL that from where user came so that after signing in,user can be redirected to that page. Any help is appreciated. Bye
Zaeem Sherazi
|
|
Reply By:
|
kosla78
|
Reply Date:
|
11/12/2003 6:25:21 AM
|
You can use Request.ServerVariables("HTTP_REFERRER"). This returns the page from which the redirection occured. Try finding more info in Google
Kostas Lagos
|
|
Reply By:
|
PanzarPaw
|
Reply Date:
|
11/16/2003 11:08:43 AM
|
How about passing a login value in a queryString form action="CheckLogin.asp?login=true" method="post"
and then on the second page retrieve the value
If not Request.QueryString("login") = true then Response.Redirect("index.asp") End If
|