Bug #16626 Updated: Only last cookie set
| From: | jwoolley@php.net | Date: | Fri, 17 May 2002 07:12:49 +0000 |
| Subject: | Bug #16626 Updated: Only last cookie set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-7899@lists.php.net to get a copy of this message | ||
ID: 16626
Updated by: jwoolley@php.net
Reported By: svein.olav@bjerkeset.com
-Status: Open
+Status: Closed
Bug Type: Apache2 related
-Operating System: RedHat 7.2 (kernel 2.4.18) i386
+Operating System: All
-PHP Version: 4.2.0
+PHP Version: 4.2.1
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Patch committed. Thanks, regina!
Previous Comments:
------------------------------------------------------------------------
[2002-05-12 15:17:09] redeye@cs-aktuell.de
Just ran into this problem as i was running apache 2 under win2k with
php 4.2.0 installed as apache module. No Cookie seemed to be set
correctly. I solved this problem by running PHP as CGI binary.
------------------------------------------------------------------------
[2002-05-03 01:11:05] regina@hitel.net
I did fix this problem by modifing "ext/standard/head.c".
The diff is below.
--------------------------------------------------------
124c124
< return sapi_add_header(cookie, strlen(cookie), 0);
---
> return sapi_add_header_ex(cookie, strlen(cookie), 0, 0
TSRMLS_CC);
--------------------------------------------------------
PS) This bug should be killed at next version. May be....
------------------------------------------------------------------------
[2002-04-26 16:00:46] alex.noffe@x-project.net
Yeap I have the same problem ...
Very interessting is, sometimes works.
For Example: I have written a Bulletin Board, so I can't Login (with
Cookie) my wife have no problem ... I don't know why.
------------------------------------------------------------------------
[2002-04-25 00:44:01] cpr@hal-9000.net
I just want to add, that this is a apache 2.0 compatiblity bug, I'm
sure you all tested this out on apache 1.3.24 and it works fine for me.
so I think with the shtml bugs that apache is having this could be
included with that issue.
------------------------------------------------------------------------
[2002-04-24 15:13:00] svein.olav@bjerkeset.com
I can confirm that the replacement function for setcookie by
cabel-s@panic.com (send_htCookie) just sets the last cookie in the HTTP
response header on my system
------------------------------------------------------------------------
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/16626
--
Edit this bug report at http://bugs.php.net/?id=16626&edit=1