Bug #18168: setcookie() only sets last call
| From: | robschiffman at imaginaworld dot com | Date: | Thu, 04 Jul 2002 18:20:05 +0000 |
| Subject: | Bug #18168: setcookie() only sets last call | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13131@lists.php.net to get a copy of this message | ||
From: robschiffman@imaginaworld.com
Operating system: Windows 2000 Server
PHP version: 4CVS-2002-07-04
PHP Bug Type: Apache2 related
Bug description: setcookie() only sets last call
Calling setcookie multiple times only sets the last cookie "second".
setcookie.php:
<?
setcookie("first","1");
setcookie("second","2");
?>
show results:
use javascript:alert(document.cookie); in URL to verify.
--
Edit bug report at http://bugs.php.net/?id=18168&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18168&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18168&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18168&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18168&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18168&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18168&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18168&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18168&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18168&r=globals