note 8592 added to setcookie
| From: | cmurray at shapercg dot com | Date: | Wed, 20 Sep 2000 10:39:58 +0000 |
| Subject: | note 8592 added to setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5221@lists.php.net to get a copy of this message | ||
I have set the following cookie in a php page:
$lifetime = mktime(12, 50, 30, 6, 20, 2010);
setcookie("CustomCustomer", $custom_customer, $lifetime);
The cookie does indeed get set and can be called and displayed on the page. However, when I kill
Netscape and then start up Netscape again, the cookie is removed. It seems as though it is not
handling the expiration properly. I've tired all sorts of variations of the above example with
no success.
Any advice would be greatly appreciated.
Thanks.
Chris
http://www.php.net/manual/function.setcookie.php