Bug #16631: Only one (last?) cookie send to browser
| From: | herbert at groot dot jebbink dot nl | Date: | Tue, 16 Apr 2002 10:56:11 +0000 |
| Subject: | Bug #16631: Only one (last?) cookie send to browser | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-5099@lists.php.net to get a copy of this message | ||
From: herbert@groot.jebbink.nl
Operating system: Linux 2.2.14
PHP version: 4.0CVS-2002-04-16
PHP Bug Type: Apache2 related
Bug description: Only one (last?) cookie send to browser
Test php script.
<?php
setcookie('abc', 'abc', time() + (60 * 60 * 24 * 365), '/');
setcookie('xyz', 'xyz', time() + (60 * 60 * 24 * 365), '/');
echo "Hallo World \n\n";
?>
Respons with Apache 2.0.35 / PHP 4.2.0 RC4
HTTP/1.1 200 OK
Date: Tue, 16 Apr 2002 09:45:03 GMT
Server: Apache/2.0.35 (Unix) PHP/4.2.0RC4
Accept-Ranges: bytes
X-Powered-By: PHP/4.2.0RC4
Set-Cookie: xyz=xyz; expires=Wed, 16-Apr-03 09:45:04 GMT; path=/
Connection: close
Content-Type: text/html
X-Pad: avoid browser bug
Respons with Apache 1.3.22 en PHP 4.0.6
HTTP/1.1 200 OK
Date: Tue, 16 Apr 2002 09:49:55 GMT
Server: Apache/1.3.22 (Unix) PHP/4.0.6 mod_ssl/2.8.5 OpenSSL/0.9.6b
X-Powered-By: PHP/4.0.6
Set-Cookie: abc=abc; expires=Wed, 16-Apr-03 09:49:56 GMT; path=/
Set-Cookie: xyz=xyz; expires=Wed, 16-Apr-03 09:49:56 GMT; path=/
Connection: close
Content-Type: text/html
Greetings, Herbert
--
Edit bug report at http://bugs.php.net/?id=16631&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16631&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16631&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16631&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16631&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16631&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16631&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16631&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16631&r=submittedtwice