note 26450 added to function.setcookie

From: Date: Thu, 31 Oct 2002 05:16:25 +0000
Subject: note 26450 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-38813@lists.php.net to get a copy of this message
The comments above about being able to set or read cookies for co.uk are incorrect. 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. The seven special top level domains are: "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT". -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+26450 http://master.php.net/manage/user-notes.php?action=delete+26450 http://master.php.net/manage/user-notes.php?action=reject+26450

« previous php.notes (#38813) next »