note 27157 added to function.setcookie

From: Date: Mon, 25 Nov 2002 16:14:22 +0000
Subject: note 27157 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-39950@lists.php.net to get a copy of this message
thx phippsj, with so many posts on this subject, everything authors come up with is: "use the path parameter and make it '/' " but nobody gives a reason. The path paramater is optional indeed but the cookie is set with path-info about where it was created. I created a cookie in mydomain/login/login.php and tried to read it in mydomain/index.php and that really does not work if you do not use e.g. path='/'. b.t.w. I do not know php.net procedures but is it not time that the manual is updated by some php experts on basis of all the info above . . would save a lot of reading. (Sorry, I am a newbie but spent a lot of time trying to find the essentials here). Benny. (using IE6, php4 under Win-Apache (localhost) and FreeBSD-Apache (server)) -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+27157 http://master.php.net/manage/user-notes.php?action=delete+27157 http://master.php.net/manage/user-notes.php?action=reject+27157

« previous php.notes (#39950) next »