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:[EMAIL PROTECTED]]
> Sent: 31 July 2002 12:22
> To: [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to