Hi Jeff,

Yes, use time()

Example....  86400 seconds in a day.  3600 in an hour.  Use some basic

$cookie_expire = time() * 86400 * 365; // Sets cookie for a year (365 days).


"Jeff Lewis" <[EMAIL PROTECTED]> wrote in message
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.


PHP General Mailing List (http://www.php.net/)
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