note 93712 added to function.setcookie
| From: | LexyFivethousandTwothousandTwo at yahoo dot com | Date: | Thu, 24 Sep 2009 00:42:20 +0000 |
| Subject: | note 93712 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161002@lists.php.net to get a copy of this message | ||
If your isset($_COOKIE['cookieName']) call fails even though
the setcookie("cookieName", $cookieValue, time(),..) returned
success, try replacing the timeout value with "0". I just spent
an entire day on this strange problem. I am using IE8. This
same call worked OK in the past with a timeout value of
time() + 360. Anyway, changing it to "0" fixed the problem.
--Alex.
----
Server IP: 209.41.74.194
Probable Submitter: 173.57.172.91
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/93712
Del: integrated -- https://master.php.net/note/delete/93712/integrated
Del: useless -- https://master.php.net/note/delete/93712/useless
Del: bad code -- https://master.php.net/note/delete/93712/bad+code
Del: spam -- https://master.php.net/note/delete/93712/spam
Del: non-english -- https://master.php.net/note/delete/93712/non-english
Del: in docs -- https://master.php.net/note/delete/93712/in+docs
Del: other reasons-- https://master.php.net/note/delete/93712
Reject -- https://master.php.net/note/reject/93712
Search -- https://master.php.net/manage/user-notes.php