Bug #16793 Updated: setcookie() broken

From: Date: Fri, 17 May 2002 11:50:59 +0000
Subject: Bug #16793 Updated: setcookie() broken
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7918@lists.php.net to get a copy of this message
ID: 16793 Updated by: sniper@php.net Reported By: kala@pinerecords.com -Status: Duplicate +Status: Closed Bug Type: Apache2 related Operating System: Linux 2.4 PHP Version: 4.0CVS-2002-04-2 New Comment: This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-04-24 10:00:22] kala@pinerecords.com Hmm.. apparently a dup. of 16626. ------------------------------------------------------------------------ [2002-04-24 09:18:09] kala@pinerecords.com Trying to set several cookies in a row using, say, $ts = time(); setcookie("dsession", $ckey, $ts + 315360000); setcookie("dlogin", $username, $ts + 315360000); setcookie("dlang", $slang, $ts + 315360000); results in only the last cookie being actually sent by Apache 2.0.35. This becomes obvious if one switches the order of the setcookie() calls and traces the HTTP communication with 'lynx -trace'. Happy debugging. :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16793&edit=1

« previous php.bugs (#7918) next »