note 48595 deleted from function.setcookie by tularis

From: Date: Sun, 02 Jan 2005 14:11:25 +0000
Subject: note 48595 deleted from function.setcookie by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82567@lists.php.net to get a copy of this message
Note Submitter: arvy at bol dot com dot br ---- About php@undiluted dot org message and Internet Explorer, and about timezone, if you use a command like setcookie("Password",$Pass,time()+3600), this command can return a date in "AM/PM" format, GMT. It can conflicts to the "Date" header of HTTP headers. So, if Date header returns the actual time as "15:03", the time()+3600 can return "03:13" and Internet Explorer will understand as an "expired cookie" and it will not set. I've tested in Firefox and Netscape, both accepts the cookie, so Internet Explorer cares about the dates of Date and Set-Cookie headers, comparing them.

« previous php.notes (#82567) next »