note 29317 added to function.setcookie
| From: | mikezivin at yahoo dot com | Date: | Sun, 09 Feb 2003 23:19:40 +0000 |
| Subject: | note 29317 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43704@lists.php.net to get a copy of this message | ||
When developing web applications on your local machine and using "localhost" as your
domain, cookies will not be set correctly using IE6 (maybe other IEs as well) if you specify
"localhost" as your domain when using setCookie(). If you read the Netscape spec, there is
a note:
"Only hosts within the specified domain can set a cookie for a domain and domains must have at
least two (2) or three (3) periods in them to prevent domains of the form: ".com",
".edu", and "va.us". Any domain that fails within one of the seven special top
level domains listed below only require two periods. Any other domain requires at least three."
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+29317
http://master.php.net/manage/user-notes.php?action=delete+29317
http://master.php.net/manage/user-notes.php?action=reject+29317