note 54063 deleted from function.setcookie by bjori
| From: | bjori@php.net | Date: | Mon, 08 Jan 2007 10:46:38 +0000 |
| Subject: | note 54063 deleted from function.setcookie by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121426@lists.php.net to get a copy of this message | ||
Note Submitter: James
----
"If you cannot get a cookie to stick when using an expiration date..."
Also the session.cookie_lifetime parameter in php.ini seems to cause the problem. If this value is
set to zero, the cookie will always expire when you close the browser even though you specify
expiration time in set_cookie(). After setting session.cookie_lifetime to some nonzero value, my
cookies stuck. :)
(Apache 1.3.33, PHP 5.0.4)