note 74127 deleted from function.setcookie by bobby
| From: | bobby@php.net | Date: | Mon, 26 Mar 2007 16:17:51 +0000 |
| Subject: | note 74127 deleted from function.setcookie by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-124821@lists.php.net to get a copy of this message | ||
Note Submitter: mike at lathyrus dot net
----
Be careful of using the same cookie name in subdirectories. Setting a simple cookie
<?setcookie("region", $_GET['set_region']);?>
both in the root / and for instance in this case /admin/ will create 2 cookies with different paths.
In reading the cookies back only the first one is read regardless of path.