note 40503 added to function.setcookie

From: Date: Fri, 05 Mar 2004 17:03:06 +0000
Subject: note 40503 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-66307@lists.php.net to get a copy of this message
I know that others have had problems with WinXP and cookies not setting. Someone here has already mentioned that the domain field must have at least one dot (.) in it. The problem therein lies with most home users leaving your host name as localhost. This is fine and dandy for most applications but setcookie() seems to not like it so here is my solution... Right Click My Computer > Properties > Computer Name > Change > More Once there change the part where it say's "Primary DNS Suffix of This Computer" to whatever you want, e.g. com, net,X,home,localdomain Restart the computer and start putting comp-name.DNS Suffix I hope this helps others who have struggled with this problem I know it bugged me for the longest time. ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40503 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40503&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40503&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66307) next »