note 69549 added to function.setcookie

From: Date: Sat, 09 Sep 2006 22:30:59 +0000
Subject: note 69549 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-116965@lists.php.net to get a copy of this message
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" ---- Server IP: 194.246.101.61 Probable Submitter: 88.160.148.158 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/69549 Del: integrated -- https://master.php.net/note/delete/69549/integrated Del: useless -- https://master.php.net/note/delete/69549/useless Del: bad code -- https://master.php.net/note/delete/69549/bad+code Del: spam -- https://master.php.net/note/delete/69549/spam Del: non-english -- https://master.php.net/note/delete/69549/non-english Del: in docs -- https://master.php.net/note/delete/69549/in+docs Del: other reasons-- https://master.php.net/note/delete/69549 Reject -- https://master.php.net/note/reject/69549 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116965) next »