note 17654 added to function.setcookie

From: Date: Tue, 18 Dec 2001 17:11:27 +0000
Subject: note 17654 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-23133@lists.php.net to get a copy of this message
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! -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+17654 http://master.php.net/manage/user-notes.php?action=delete+17654 http://master.php.net/manage/user-notes.php?action=reject+17654

« previous php.notes (#23133) next »