Bug #18168 Updated: setcookie() only sets last call

From: Date: Thu, 04 Jul 2002 20:52:01 +0000
Subject: Bug #18168 Updated: setcookie() only sets last call
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13150@lists.php.net to get a copy of this message
ID: 18168 Updated by: sniper@php.net Reported By: robschiffman@imaginaworld.com Status: Open Bug Type: Apache2 related Operating System: Windows 2000 Server PHP Version: 4CVS-2002-07-04 New Comment: No, it's not the latest. The snapshots without 'stable' text in them are. (and with text 'latest'). But unfortunately the binary snapshots are not build with latest Apache2 so.. Previous Comments: ------------------------------------------------------------------------ [2002-07-04 16:40:22] robschiffman@imaginaworld.com My version is latest STABLE from http://snaps.php.net/win32/ which I'm assuming is the most recent build from CVS, correct? ------------------------------------------------------------------------ [2002-07-04 16:17:20] sniper@php.net AFAIK, if you use the latest CVS HEAD of PHP and Apache, this will work. ------------------------------------------------------------------------ [2002-07-04 15:59:06] robschiffman@imaginaworld.com PHP Version: 4.2.2-dev Apache Version: 2.0.39 ------------------------------------------------------------------------ [2002-07-04 14:51:21] sniper@php.net Exactly what version of PHP you have? (look that in phpinfo() output) And apache2? ------------------------------------------------------------------------ [2002-07-04 14:20:04] robschiffman@imaginaworld.com 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 this bug report at http://bugs.php.net/?id=18168&edit=1

« previous php.bugs (#13150) next »