note 17654 deleted from function.setcookie by tularis
| From: | tularis@php.net | Date: | Sun, 02 Jan 2005 14:41:08 +0000 |
| Subject: | note 17654 deleted from function.setcookie by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-82597@lists.php.net to get a copy of this message | ||
Note Submitter: greg-php at elysium dot ltd dot uk
----
As already stated above, one reason for the failure of expiration-based cookies can be an incorrect
local time on the CLIENT. Two more points about this:
1. Not all browsers suffer from the problem. Netscape doesn't, and it appears to do the
sensible thing: it compares the cookie expiry time with the server's notion of the current
time, and then adds the difference onto its own notion of the time for storage.
2. Local time includes TIMEZONE. A cookie expiring at 2 p.m. GMT has already expired at 11 a.m. on
the same day if the timezone is (correctly or incorrectly) set to EST. Beware users whose computers
were preinstalled in another country and who have only corrected the visible clock time!