|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17640 Cookies not being set right...
Submitted: 2002-06-07 08:07 UTC Modified: 2002-06-07 10:02 UTC
From: administrator at plipp dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.2.1 OS: Linux Redhat 7.3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: administrator at plipp dot net
New email:
PHP Version: OS:


 [2002-06-07 08:07 UTC] administrator at plipp dot net
When setting 2 or more cookies after on other, only the last one of those cookies really get set... ex ->

setcookie("cookie3","cookie3");   <- only this one gets set

echo "$_COOKIE["cookie1"] :: $_COOKIE["cookie2"] :: $_COOKIE["cookie3"]";

would return:
 :: :: cookie3

I use Redhat linux 7.3, PHP 4.2.1 and Apache 2.0.36...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-07 10:02 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Jan 27 17:03:42 2023 UTC