note 21440 added to function.setcookie

From: Date: Mon, 13 May 2002 12:48:48 +0000
Subject: note 21440 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-30587@lists.php.net to get a copy of this message
Regarding the time difference between client and server, (aksed by aortiz@onlinetraffic.com): Yes, this a a problem. However, it's not the fault of PHP, this problem is inherent to the specification of Cookies by Netscape. Thankfully a newer specification by the IETF (the organisation that made all Internet protocols like HTTP, SMTP, TCP, IP, SMTP and POP3) fixes this by using the time *difference* instead of the absolute time. (it uses the Max-Age attribute instead of the expires attribute) The disadvantage is that probably not all browsers support it (I haven't checked to be honest). This new specification is over 5 years old (feb 1997), but in particular IE has the habit of ignoring standards :-( -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+21440 http://master.php.net/manage/user-notes.php?action=delete+21440 http://master.php.net/manage/user-notes.php?action=reject+21440

« previous php.notes (#30587) next »