Re: cookie problems

From: Date: Wed, 11 Jul 2001 07:23:54 +0000
Subject: Re: cookie problems
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10272@lists.php.net to get a copy of this message
The variables wont become available until the cookies are read - which happens when the script is first loaded. Normally the cookies are set, then a header is sent to reload the page - but be carful not to create an endless loop of browser reloading... Check out the examples on: http://www.php.net/manual/en/function.setcookie.php if you still can't get it working, let us know... Tom At 23:40 10/07/2001 -0700, you wrote:
HI, my guess is is that the cookies will be killed the NEXT time you run this script. Ken ----- Original Message ----- From: "Brad Lipovsky" <syzme@home.com> To: <php-db@lists.php.net> Sent: Tuesday, July 10, 2001 11:24 PM Subject: [PHP-DB] cookie problems can anyone help me with this code? i cant believe it wont work, it seems pretty simple! <?php setcookie ("logged_in", "logged in", time() - 3600); setcookie ("logged_user_name", "logged user name", time() - 3600); print "$logged_in <br>"; print "$logged_user_name"; ?> brad -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#10272) next »