> Before redirecting it will also store a cookie in the
> browser named camefrom.
>
> SO then On the login.php page a user enters username
> and pasword and Submits.. if user is found then It has
> to get the Cookie value like this:
>
> $goto = $HTTP_COOKIE_VARS['camefrom'];
>
> header ("Location: $goto");
Only some browsers will accept a Cookies *and* a redirect in the headers in
a single page.
Don't use a cookie to do the "camefrom".
Use $HTTP_REFERER or use:
header("Location: login.php?camefrom=thispage.php");
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]