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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 09 13:03:40 2023 UTC