|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-14 09:28 UTC] derick@php.net
[2002-07-14 11:26 UTC] derick@php.net
[2002-08-06 14:05 UTC] blackdragon3001 at hotmail dot com
[2002-08-08 06:54 UTC] jait at ee dot oulu dot fi
[2002-08-08 19:10 UTC] shaggy at vip dot bg
[2002-08-09 16:25 UTC] dsguy04 at hotmail dot com
[2002-08-09 19:39 UTC] shaggy at vip dot bg
[2002-11-06 10:40 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 00:00:02 2025 UTC |
I use PHP compiled from sources, ./configure --with-pgsql --with-mysql --with-zlib --with-apache=dir Consider the following code has been executed, and another page loaded setcookie('test', 'value1', time()+3600, '/foo/bar/'); setcookie('test', 'value2', time()+3600, '/'); setcookie('test', 'value3', time()+3600, '/foo/'); When a browser requests a file under the /foo/bar/ directory it sends the cookies with the most specific one first: test="value1"; $Path="/foo/bar"; test="value3"; $Path="/foo/"; test="value2"; $Path="/"; Then PHP processes these and it overrides the first two cookies with the most general one which is incorrect. The correct behaviour is to leave the value of the cookie set to the most specific one.