note 27814 added to function.setcookie
| From: | webmaster at konsoll dot net | Date: | Thu, 19 Dec 2002 19:19:39 +0000 |
| Subject: | note 27814 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41127@lists.php.net to get a copy of this message | ||
Actually I had a problem where I used $_COOKIE in a mysql query, and it failed the first time
visitors entered the site due to the reload issue with setcookie.
Solution?:
if (!isset($_COOKIE['cookiename'])) { $_COOKIE['cookiename'] = VALUE; }
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+27814
http://master.php.net/manage/user-notes.php?action=delete+27814
http://master.php.net/manage/user-notes.php?action=reject+27814