Re: CookieMonster
| From: | Mikey | Date: | Thu, 01 Sep 2005 18:06:56 +0000 |
| Subject: | Re: CookieMonster | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-221705@lists.php.net to get a copy of this message | ||
Jason Davidson wrote:
You can.. Dont include the expire argument.. or set it to 0. Jason On 9/1/05, Philip Hallstrom <php@philip.pjkh.com> wrote:Mikey -- The revolution will not be sent as an email attachment.Simple question I guess.. How do I set a cookie so it will never expire? (I don't want it toexpire) You can't really... I could delete it and that would be the same as expiring it... Best you can do is set it to expire 100 years in the future or some such... see the manual for SetCookie() for more info... -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If you do that then the cookie will expire as soon as the browser session has been closed - I dont think that is what the OP wanted. As per the previous post, all you can really do is set it for some date far in the future.