You are here: Re: [PHP] CookieMonster « PHP « IT news, forums, messages
Re: [PHP] CookieMonster

Posted by Mikey on 10/20/16 11:26

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:
>
>
>>>Simple question I guess..
>>>
>>>How do I set a cookie so it will never expire? (I don't want it to
>>>
>>>
>>expire)
>>
>>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.

Mikey
--
The revolution will not be sent as an email attachment.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация