#18780 [Bgs]: setcookie doesn't work fine.

From: Date: Wed, 07 Aug 2002 18:55:21 +0000
Subject: #18780 [Bgs]: setcookie doesn't work fine.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16198@lists.php.net to get a copy of this message
 ID:               18780
 User updated by:  phpinfo@21cn.com
 Reported By:      phpinfo@21cn.com
 Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: Red Hat Linux 7.3
 PHP Version:      4.2.2
 New Comment:

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".


Previous Comments:
------------------------------------------------------------------------

[2002-08-07 09:29:21] 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 08:46:14] 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 08:33:19] phpinfo@21cn.com

 When i set several cookies,only the last works. 

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18780&edit=1



Thread (5 messages)

« previous php.bugs (#16198) next »