RE: [PHP] Cookies on Phoenix
| From: | John W. Holmes | Date: | Sun, 18 May 2003 15:27:00 +0000 |
| Subject: | RE: [PHP] Cookies on Phoenix | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148090@lists.php.net to get a copy of this message | ||
> Here's an extract of the code. An expire time was set and the cookie
> still exists as I watch through the list of cookies set in Mozilla.
>
> <?php
> [...]
> $str = serialize($cook);
> setcookie($CName,$str, time()+(1000000000*100000000));
Ummm... maybe you should be a little realistic in your expiry time? Do
you really need a cookie persisting for 3.1 billion years??
> > Do you have "Throw away new cookies on exit" set in Opera? "Limit
> > maximum lifetime of cookies to current session" in Mozilla?
>
> Call me supernoob .. but... where do I find this option in Mozilla?
Edit -> Preferences -> Privacy and Security -> Cookies -> Limit maximum
lifetime of cookie to: -> current session
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/