|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18856 setcookie does set cookie 1, but not cookie 2
Submitted: 2002-08-11 09:47 UTC Modified: 2002-08-11 12:02 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: joesterg at hotmail dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.2 OS: Windows 2000 Server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 25 = ?
Subscribe to this entry?

 [2002-08-11 09:47 UTC] joesterg at hotmail dot com
Windows 2000 Server
Apache 2.39
PHP 4.2.2

setcookie("x1","value x1");
setcookie("x2","value x2");
the code above will only store cookie x1 and the value. Cookie x2 and the value are not stored -that is: cannot be found in the $_COOKIE array.
Was debugging Mantis ( when I encountered this problem.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-11 10:25 UTC] joesterg at hotmail dot com
Just tested this with Apache 1.3.26, where this does not seem to happen. Both cookies are set here...
 [2002-08-11 10:37 UTC]
Known problem.  Has been fixed in CVS for some time.  Grab a snapshot from
 [2002-08-11 12:02 UTC] joesterg at hotmail dot com
Right on - det virker fint nu.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Nov 28 12:05:52 2022 UTC