note 15649 rejected from function.setcookie by zak
| From: | zak@php.net | Date: | Tue, 25 Sep 2001 08:15:32 +0000 |
| Subject: | note 15649 rejected from function.setcookie by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18271@lists.php.net to get a copy of this message | ||
I just spent several hours trying to find out what was causing my cookies not to be stored
correctly. It seems with build php-4.0.3pl1 you must pass the expiration within quotes.
i.e.
setcookie("name", "value", time()+3600)
would not work whereas
setcookie("name", "value", "time()+3600")
does. I'm not sure why the change, as the code worked before the new version of php was
installed... Perhaps it will save someone the headache I endured.