note 42418 deleted from function.setcookie by tularis

From: Date: Sun, 02 Jan 2005 14:15:46 +0000
Subject: note 42418 deleted from function.setcookie by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82576@lists.php.net to get a copy of this message
Note Submitter: Bulk at bulksplace dot com ---- With regards to what cptnwinky said about cookies being set on windows XP, and the need for a period (.) in the domain parameter. I noticed that if you just leave the 'domain' parameter blank, PHP and XP then have no problem setting the cookie to localhost (or what ever computer name you are using), with out the need for a period, or a DNS suffix. Example: <?php setcookie('cookie_name', 'data', time() + 3600, '/', ''; ?>

« previous php.notes (#82576) next »