Bug #14389 Updated: cookies problem

From: Date: Tue, 08 Jan 2002 07:56:38 +0000
Subject: Bug #14389 Updated: cookies problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76235@lists.php.net to get a copy of this message
ID: 14389
Updated by: lobbin
Reported By: demon@dreamers.gr
Old Status: Open
Status: Feedback
Bug Type: IIS related
Operating System: NT4
PHP Version: 4.0.6
New Comment:

Do you still have this problem with PHP 4.1.1?

Previous Comments:
------------------------------------------------------------------------

[2001-12-09 05:00:16] demon@dreamers.gr

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 this bug report at http://bugs.php.net/?id=14389&edit=1



Thread (5 messages)

« previous php.dev (#76235) next »