RE: [PHP] Explanation of cookie behavior
| From: | Ryan Schefke | Date: | Thu, 15 Apr 2004 14:59:30 +0000 |
| Subject: | RE: [PHP] Explanation of cookie behavior | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183469@lists.php.net to get a copy of this message | ||
John - It works now! That was it. Thanks!
Ryan
-----Original Message-----
From: John Nichel [mailto:john@kegworks.com]
Sent: Thursday, April 15, 2004 10:53 AM
To: PHP Mailing List
Subject: Re: [PHP] Explanation of cookie behavior
Ryan Schefke wrote:
> setcookie ("login_ck", "$lo", time()+ "60*60*24*30",
> "", "", "0"); //set
> cookie for login, for 30days
Expire is supposed to be an integer. Try...
setcookie ("login_ck", "$lo", time()+ 2592000, "", "", 0);
--
***********************************************************************
* _ __ __ __ _ * John Nichel *
* | |/ /___ __ \ \ / /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 *
* | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ ' \ * 737 Main St. *
* |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 *
* |___/ * Buffalo, NY *
* http://www.KegWorks.com john@KegWorks.com * 14203
- 1321 *
***********************************************************************
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php