#18337 [Com]: General cookies have higher priority than specific
| From: | dsguy04 at hotmail dot com | Date: | Fri, 09 Aug 2002 20:25:01 +0000 |
| Subject: | #18337 [Com]: General cookies have higher priority than specific | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16403@lists.php.net to get a copy of this message | ||
ID: 18337
Comment by: dsguy04@hotmail.com
Reported By: shaggy@vip.bg
Status: Open
Bug Type: HTTP related
Operating System: All
PHP Version: 4.2
New Comment:
how do i fix it using http://files.derickrethans.nl/cookie_patch.diff
??????
what do i do with that stuff?????? im having this prob too
Previous Comments:
------------------------------------------------------------------------
[2002-08-08 19:10:27] shaggy@vip.bg
You're quiete right, the problem is I don't know how one can store this
information in the _COOKIE array without breaking old apps.
The Netscape docs actually are superceded by an RFC, anyway it says
that if there's more than one cookie the most specific should be taken
into account - if the app can't deal with them all.
------------------------------------------------------------------------
[2002-08-08 06:54:08] jait@ee.oulu.fi
Correct me if I'm wrong but according to
http://wp.netscape.com/newsref/std/cookie_spec.html
it seems that there can be multiple cookie definitions with the same
name. And as long as the path is different NONE of them should get
overrided.
And if BOTH name and path equal the most recent cookie should be the
only one that's valid.
So don't you think the correct behaviour is to pass ALL the cookies to
the script as long as the path is different?
But this is kinda difficult with the way the $_COOKIE array is
currently implemented.
jt
------------------------------------------------------------------------
[2002-08-06 14:05:27] blackdragon3001@hotmail.com
I have win XP and PHP 4.2.2!
I have the same problem!
I have see this :http://files.derickrethans.nl/cookie_patch.diff
but can I use this and how?
------------------------------------------------------------------------
[2002-07-14 11:26:09] derick@php.net
Partly fix can be found here:
http://files.derickrethans.nl/cookie_patch.diff
As I have no more time to finish it I just share it here, it works, but
not for registered globals.
Derick
------------------------------------------------------------------------
[2002-07-14 09:28:10] derick@php.net
Working on it...
Derick
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/18337
--
Edit this bug report at http://bugs.php.net/?id=18337&edit=1