note 51729 added to function.setcookie

From: Date: Fri, 08 Apr 2005 19:18:31 +0000
Subject: note 51729 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-87721@lists.php.net to get a copy of this message
As per Sijmen Ruwhof's comment: It's not that the domain requires a dot as much as it requires a fully qualified domain name. Setting it to false is a valid workaround, as it will default to whatever domain the page is being accessed at. If a fully qualified domain name is unavailable, consider editing your hosts file on both the client and server to have a common domain name to use for the cookie. ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51729 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51729&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51729&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51729&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51729&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51729&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51729&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87721) next »