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?
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.
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