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:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 15:54
> 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 (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to