RE: [PHP-WIN] Re: PHP Cookie
| From: | Mikey | Date: | Wed, 31 Jul 2002 11:56:22 +0000 |
| Subject: | RE: [PHP-WIN] Re: PHP Cookie | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-15045@lists.php.net to get a copy of this message | ||
Or a more polite reply would be:
All cookies must have an expiry date for them to persist - if you do not set
an expiry date then the cookie will be cleared when the user's browser
session is closed.
I don't believe this is in the PHP manual...
What you could do is include some code in your pages that updates the expiry
date of the cookie every time they visit a page and set the expiry for some
very distant date in the future. (Not too sure how far into the future you
can go - this would be up to you to experiment with.)
HTH,
Mikey
> -----Original Message-----
> From: George Nicolae [mailto:geomasterweb@hotmail.com]
> Sent: 31 July 2002 12:22
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Re: PHP Cookie
>
>
> RTFM - http://www.php.net/manual/en/function.setcookie.php
>
> --
>
>
> Best regards,
> George Nicolae
> IT Manager
> ___________________
> PaginiWeb.com - Professional Web Design
> www.PaginiWeb.com
>
>
> "James Meers" <jambo@venda.com> wrote in message
> news:2BA3903C0E9C284F9AA18B2E123CF5ED1D22C0@VENDAC01.uk.venda...VëµßYØu±
> 'ÈÙln
> Does anyone know how to create a cookie that doesn't expire?
>
> Jambo
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>