Re: Cookie stored but cannot trigger the function...

From: Date: Fri, 23 Feb 2001 23:28:32 +0000
Subject: Re: Cookie stored but cannot trigger the function...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41405@lists.php.net to get a copy of this message
> 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

« previous php.general (#41405) next »