note 91071 added to function.setcookie
| From: | ArthurLui at osu1 dot php dot net | Date: | Sat, 23 May 2009 18:52:36 +0000 |
| Subject: | note 91071 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-155911@lists.php.net to get a copy of this message | ||
Also note that you should specify the path as '/' if you want the cookie to apply to the
entire site, especially if the location of the file where you create the cookies isn't at the
root.
The file that created the cookies was /assets/php/login.php and was creating cookies for the path
"/assets/php/" only so it drove me nuts when I went to the homepage and the cookie
wasn't accessible from there.
----
Server IP: 66.207.199.35
Probable Submitter: 99.234.94.236
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/91071
Del: integrated -- https://master.php.net/note/delete/91071/integrated
Del: useless -- https://master.php.net/note/delete/91071/useless
Del: bad code -- https://master.php.net/note/delete/91071/bad+code
Del: spam -- https://master.php.net/note/delete/91071/spam
Del: non-english -- https://master.php.net/note/delete/91071/non-english
Del: in docs -- https://master.php.net/note/delete/91071/in+docs
Del: other reasons-- https://master.php.net/note/delete/91071
Reject -- https://master.php.net/note/reject/91071
Search -- https://master.php.net/manage/user-notes.php