Bug #14389: cookies problem

From: Date: Sun, 09 Dec 2001 10:00:17 +0000
Subject: Bug #14389: cookies problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-73131@lists.php.net to get a copy of this message
From: demon@dreamers.gr Operating system: NT4 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: cookies problem I'm using this code in 3 pages in Page 1: <form name="frm1" method="post"> <input type="password" size=20><input type="submit"> </form> in page2: if ($password == "mypassword") { setcookie("user", "admin"); header("location: page3.php"); } in page3: echo $HTTP_COOKIE_VARS["user"]; i'm using NT4 with iis4. My problem is that the cookie is not set, instead of header("location: page3.php") i used this echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=page3.php\">"; and then i could get cookie value! this problem is only under iis4/iis5 under apache (not windows only unix) i didn't have any problems -- Edit bug report at: http://bugs.php.net/?id=14389&edit=1

« previous php.dev (#73131) next »