Re: Cookie effect

From: Date: Sat, 12 May 2001 00:01:02 +0000
Subject: Re: Cookie effect
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9264@lists.php.net to get a copy of this message
On Fri, 11 May 2001, David Balatero wrote: > I have a login script that sets a cookie on your hard drive...the only > problem is, the cookie only comes into effect after I've clicked thru to > another page from login.php...any ideas on this? My (abridged) code is > currently: > > <?php > header("Set-Cookie: LoggedIn=1; path=/;"); > header("Set-Cookie: GHSUserName=$username; path=/;"); > header("Set-Cookie: GHSUserID=$user_id; path=/;"); > ?> Read: http://www.php.net/manual/en/function.setcookie.php Cheers.

« previous php.db (#9264) next »