note 69549 deleted from function.setcookie by betz
| From: | betz@php.net | Date: | Sun, 10 Sep 2006 10:03:08 +0000 |
| Subject: | note 69549 deleted from function.setcookie by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116973@lists.php.net to get a copy of this message | ||
Note Submitter: paul
----
can't get a cookie from a sub directory
this way :
http://myserver/dir/script.php
this script set a cookie "Sample=data1"
http://myserver/dir/beta/script.php
this (beta) script set the same cookie "Sample=data2"
Firefox show me 2 cookies, one at /dir and the other at /dir/data...but when the beta script try to
read his cookie, the first one is read !
print_r($_COOKIE) just say
"Sample=data1"