note 68127 added to function.setcookie

From: Date: Fri, 14 Jul 2006 01:20:13 +0000
Subject: note 68127 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-114772@lists.php.net to get a copy of this message
As I've interpreted it, only the cookies with a path set to the server name to which the request was made are available to the PHP superglobal $_COOKIE. If all were available, you'd probably have a huge security hole. Therefore, if you have a cookie on your computer set by www.cha.com, and you then visit www.fah.com, www.fah.com cannot see that your www.cha.com cookie exists (at least through the PHP $_COOKIE superglobal). I've tested this in Safari and Firefox on Mac. I can't imagine that it would be any different on other browsers, as I thought that was specifically what the path parameters were for. ---- Server IP: 216.194.113.175 Probable Submitter: 24.218.17.59 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/note/edit/68127 Del: integrated -- http://master.php.net/note/delete/68127/integrated Del: useless -- http://master.php.net/note/delete/68127/useless Del: bad code -- http://master.php.net/note/delete/68127/bad+code Del: spam -- http://master.php.net/note/delete/68127/spam Del: non-english -- http://master.php.net/note/delete/68127/non-english Del: in docs -- http://master.php.net/note/delete/68127/in+docs Del: other reasons-- http://master.php.net/note/delete/68127 Reject -- http://master.php.net/note/reject/68127 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114772) next »