note 48595 added to function.setcookie

From: Date: Fri, 31 Dec 2004 15:42:43 +0000
Subject: note 48595 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-82511@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48595 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48595&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48595&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48595&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48595&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48595&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48595&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48595&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#82511) next »