ID: 22840
User updated by: chair123 at 163 dot net
Reported By: chair123 at 163 dot net
Status: Open
Bug Type: Session related
Operating System: win2000pro
PHP Version: 4.3.1
New Comment:
got the problem...
If I use
echo "<script> window.location.href='chksession.php' </script>";
instead of header(��location: chksession.php"),
that's all right.
It must be a bug in win2000pro
Previous Comments:
------------------------------------------------------------------------
[2003-03-24 02:27:42] chair123 at 163 dot net
session.php
<?php
$Access = "999999";
$UserID = "Chair";
session_start();
session_register("Access");
session_register("UserID");
header (Location: chksession.php);
?>
chksession.php
<?php
session_start();
session_register("Access");
session_register("UserID");
echo $Access;
echo $UserID;
session_unset;
session_destroy;
?>
when I type http://127.0.0.1/session.php in IE frist, It's nothing in
the screen. NO session file in directory c:\php\sessiondata.
I typed in second time, it 's "99999Chair" in the screen(the same IE).
and sess_7e2ebd21da6d67c7e9f3860ae7c60a6 file in there. and whatever
you chang your php file , the session file never been removed! and I
put the php file in redhat 8.0, all is right. please give me a hand.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22840&edit=1