note 21440 deleted from function.setcookie by vincent
| From: | vincent@php.net | Date: | Wed, 10 Sep 2003 18:38:37 +0000 |
| Subject: | note 21440 deleted from function.setcookie by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55967@lists.php.net to get a copy of this message | ||
Note Submitter: public@macfreek.nl
----
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 :-(