RE: [PHP] Cookie Expiry Dates? From: Adrian Ciutureanu (adrian.ciutureanu <email protected>)
Date: 07/11/01

int setcookie (string name [, string value [, int expire [, string path
[, string domain [, int secure]]]]])
expire = time() + 3600*24*30;
Note that 'expire' is the client relative to GMT time. So, if the client
has the local time set to 01/01/1985, your cookie will be born dead ;)

> -----Original Message-----
> From: Jeff Lewis [mailto:jeff <email protected>]
> Sent: 11 iulie 2001 15:54
> To: php-general <email protected>
> Subject: [PHP] Cookie Expiry Dates?
>
>
> I'd like to set a cookie that never expires or at least one
> that lasts a month, how can I set it? Does it have to be with time?
>
> I am using SetCookie.
>
> Jeff
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>