Page 1 of 1

Continue to page after login

Posted: Tue Oct 03, 2006 5:50 am
by brob
Hi I want users to be able to click a link to a page that is restricted and once they login they are still taken to that page without having to navigate to it.

Any ideas?

Thanks

Posted: Tue Oct 03, 2006 6:15 am
by impulse()
Do you mean so the link isn't visible to users who aren't logged in?

Posted: Tue Oct 03, 2006 6:34 am
by Zoxive

Code: Select all

$_SERVER['HTTP_REFERER']
-NSF

Posted: Tue Oct 03, 2006 6:41 am
by onion2k
NonStopableForce wrote:

Code: Select all

$_SERVER['HTTP_REFERER']
-NSF
Sending the HTTP_REFERER field is optional, you cannot rely on it.

Posted: Tue Oct 03, 2006 6:47 am
by Zoxive
onion2k wrote:
NonStopableForce wrote:

Code: Select all

$_SERVER['HTTP_REFERER']
-NSF
Sending the HTTP_REFERER field is optional, you cannot rely on it.
Or set a Temp Session Var, or have it go to login.php?Back=home.php or something similar... if you dont want to rely on Referer...

-NSF