Bug #14389 Updated: cookies problem
| From: | demon at dreamers dot gr | Date: | Tue, 08 Jan 2002 10:24:56 +0000 |
| Subject: | Bug #14389 Updated: cookies problem | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76246@lists.php.net to get a copy of this message | ||
ID: 14389
User updated by: demon@dreamers.gr
Reported By: demon@dreamers.gr
Old Status: Feedback
Status: Open
Bug Type: IIS related
Operating System: NT4
PHP Version: 4.0.6
New Comment:
yes i do
Previous Comments:
------------------------------------------------------------------------
[2002-01-08 02:56:38] lobbin@php.net
Do you still have this problem with PHP 4.1.1?
------------------------------------------------------------------------
[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