From:             [EMAIL PROTECTED]
Operating system: Linux 2.4
PHP version:      4.0CVS-2002-04-24
PHP Bug Type:     Apache2 related
Bug description:  setcookie() broken

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 bug report at http://bugs.php.net/?id=16793&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16793&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16793&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16793&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16793&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16793&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16793&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16793&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16793&r=submittedtwice

Reply via email to