php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-07 08:46 UTC] hholzgra@php.net
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] kalowsky@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

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:
<?php
setcookie('first','value1');
setcookie('second','value2');
echo $_COOKIE['first'];
echo $_COOKIE['second'];
?>
After I refresh the page,it only print "value2" but not "value1value2".
 [2002-08-07 14:59 UTC] rasmus@php.net
This is a known bug.  Use the cvs versions of both Apache2 and PHP and you will find it works fine.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC