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

From: Date: Thu, 04 Jul 2002 19:59:06 +0000
Subject: Bug #18168 Updated: setcookie() only sets last call
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13139@lists.php.net to get a copy of this message
ID: 18168 Updated by: robschiffman@imaginaworld.com Reported By: robschiffman@imaginaworld.com Status: Feedback Bug Type: Apache2 related Operating System: Windows 2000 Server PHP Version: 4CVS-2002-07-04 New Comment: PHP Version: 4.2.2-dev Apache Version: 2.0.39 Previous Comments: ------------------------------------------------------------------------ [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 (#13139) next »