RE: [PHP-WIN] The problem of cookie

From: Date: Mon, 16 Jul 2001 23:54:18 +0000
Subject: RE: [PHP-WIN] The problem of cookie
Groups: php.windows 
Request: Send a blank email to php-windows+get-8339@lists.php.net to get a copy of this message
Dper, You can't set and retrieve the cookie on the same page. Please see: http://www.netscape.com/newsref/std/cookie_spec.html for an explanation of the specification. You basically have to reload the page before the cookie variable you set is avaiable. Try using sessions if you can. -Flint -----Original Message----- From: php-windows-return-8338-flint=netsolutionsllc.com@lists.php.net [mailto:php-windows-return-8338-flint=netsolutionsllc.com@lists.php.net] Sent: Monday, July 16, 2001 4:58 AM To: php-windows@lists.php.net Subject: [PHP-WIN] The problem of cookie Hi all, I set the cookie and retrieve it at the same page but when I click botton twice, it only appear once. No matter how many times I click, it is always one time short. How can I solve this problem? When I click the botton, it will get the variable from cookie then connect to the database to retrive the data. But the value of the variable is always empty at the last time. When I checked the cookie, the variable got the value already. I don't know if I can set and retrieve cookie at the same page. Thanks a lot Dper -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#8339) next »