Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Brian Huether
April 2, 2005, 1:46 am
rate this thread
I want my site to send users back to where they were prior to being told
they have to login. For instance, say user accesses page1.php. They try to
do something and they get a message telling them to login. So they login,
which is done at login.php. After they log in, I want them to end up back at
Any idea how to do this?
Re: Redirection to last url??
IMHO most often used:
if logged in: the content of http://example.com/foo
if not : redirect to
respons: authenticate user
if autheticates and oldurl exists: redirect to $_GET['oldurl']
if autheticates and oldurl misses: redirect to loggedin.html
else get authentication
- » Capturing a display on remote (linux) server from (windows) web browser
- — Previous thread in » PHP Scripting Forum