note 47967 deleted from function.setcookie by tularis

From: Date: Sun, 02 Jan 2005 14:13:21 +0000
Subject: note 47967 deleted from function.setcookie by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82571@lists.php.net to get a copy of this message
Note Submitter: pineapplecharm ---- I have noticed that cookies set by pages run through IE will be set to the root or '/' directory by default whereas in Mozilla they will set to the directory of the script. This means that if you set a cookie in /setcookie/index.php and then navigate up the tree to /home.php, a cookie shows up in the Cookie Manager but is not returned to your script because the directory doesn't match. What threw me off the scent was that IE worked fine. This is not a 100% rule - there's something else I'm missing here - but it took me hours chasing shadows before I thought to force the '/' declaration every time. Problem solved.

« previous php.notes (#82571) next »