|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18780 setcookie doesn't work fine.
Submitted: 2002-08-07 08:33 UTC Modified: 2002-08-07 14:59 UTC
From: phpinfo at 21cn dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.2 OS: Red Hat Linux 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: phpinfo at 21cn dot com
New email:
PHP Version: OS:


 [2002-08-07 08:33 UTC] phpinfo at 21cn dot com
 When i set several cookies,only the last works. 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-07 08:46 UTC]
please check the database before submitting a bug

this has already been reported for apache 2 sapi multiple times
 [2002-08-07 09:29 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-08-07 14:55 UTC] phpinfo at 21cn dot com
When i set several cookies,only the last works.
For example:
echo $_COOKIE['first'];
echo $_COOKIE['second'];
After I refresh the page,it only print "value2" but not "value1value2".
 [2002-08-07 14:59 UTC]
This is a known bug.  Use the cvs versions of both Apache2 and PHP and you will find it works fine.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 22 17:03:43 2023 UTC