ID:               18337
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         HTTP related
 Operating System: All
 PHP Version:      4.2
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is more of a browser issue then anything else. I did a tcpdump of
what is happening with your test code. All 3 cookie headers are sent by
PHP, it is then up to the browser to determine which cookie to keep and
send back.
For example Mozilla 1.0, Opera 6.02 and IE 6.0 have sent back the
following header 'Cookie: test=value2', while Konqueror sent back
Cookie: test=value3; test=value1.

It seems to me, that it is the browser's job to decide which cookie to
keep and which to throw away.

 sent the last cookie only (value 3), Konqueror 3.0 sent 'Cookie:
test=value3; test=value1'.


Previous Comments:
------------------------------------------------------------------------

[2002-08-09 19:39:00] [EMAIL PROTECTED]

Depends on your OS:
On Unices say man patch to get the idea.

If you're on Windows search for Deloire/Cygnus and diffutils, unpack
and patch.exe is in the bin directory.
Note: This is not a support forum or something.

------------------------------------------------------------------------

[2002-08-09 16:25:01] [EMAIL PROTECTED]

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

------------------------------------------------------------------------

[2002-08-08 19:10:27] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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?

------------------------------------------------------------------------

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

Reply via email to