Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Pro-active redirect
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jblayd
Starting Member

2 Posts

Posted - 30 April 2001 :  14:38:43  Show Profile
I have a current login form and page that has a redirect command once the login is accepted. It simply takes you back to the home page and updates your status to Active. I would like it to go back the last page accessed. Is there some way to pull what the last page accessed was? Possibly in a self-declared session variables? I was thinking maybe so, but then i would have to hardcode each page with it's own assignement of that variable. How can i see what page the user is on before they goto login?

Jordan

Marino
Starting Member

Canary Islands
42 Posts

Posted - 30 April 2001 :  14:46:42  Show Profile  Send Marino an ICQ Message
Request.ServerVariables("HTTP_REFERER") gives you the URL of the page from which user comes.

Marino
Go to Top of Page

MorningZ
Junior Member

USA
169 Posts

Posted - 30 April 2001 :  15:57:50  Show Profile  Visit MorningZ's Homepage  Send MorningZ an AOL message
better than referrer ( its not foolproof to use that ) is this article at 4guysfromrolla

http://www.4guysfromrolla.com/webtech/042601-1.shtml

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 30 April 2001 :  22:01:26  Show Profile
I have a login include file for all pages, which stores the HTTP_REFERER variable a Session variable. After authentication the login code redirects back to the page where the user signed on.

You don't need to Server.URLEncode the url unless you're passing it in the query string.


======
Doug G
======
Go to Top of Page

MorningZ
Junior Member

USA
169 Posts

Posted - 30 April 2001 :  22:35:51  Show Profile  Visit MorningZ's Homepage  Send MorningZ an AOL message
i'll just explain my "foolproof" statement..... the firewall we used to have at work ( Watchguard Firewall, and i am sure more do/can do so ) "block" the Referrer from the heading....

up until we changed our infrastructure, i couldn't hit any forums based on snitz or dcforums because of that "security feature"....

so you may be blocking some people out by using that, i know that most of the "personal firewalls" have an option to block it as well

not saying you must do it 4guys way, or heck, even that its the best way, its just more "compatable" perhaps



Edited by - MorningZ on 30 April 2001 22:37:15

Edited by - MorningZ on 30 April 2001 22:41:11
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07