note 27293 deleted from function.setcookie by sniper

From: Date: Wed, 11 Dec 2002 06:37:09 +0000
Subject: note 27293 deleted from function.setcookie by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40688@lists.php.net to get a copy of this message
Well I've just discovered something that was really unclear to me: the real use of the "domain" parameter, This parameter allows every web site that is a subdomain of "domain" to receive the cookies set by your website. for example: if you do setcookie("answer", "42", time() + 365 *86400, "/", "foo.com"); the "compteur" cookie will be received by foo.com but also by www.foo.com or www.foo2.foo.com ! NOTE: in the domain parameter you can specify a different website than the one from which the cookie is sent. btw: Netscape 7 integrate a very useful cookie browser.

« previous php.notes (#40688) next »