Hi, everybody,
I have two php files, this first one is:
Test1.php:
<?
session_start();
$_SESSION["hey"] = "Hey";
header("Location: http://localhost/Test2.php");
?>
and the Test2.php:
<?
session_start();
echo $_SESSION["hey"];
?>
when I tried to access the Test1.php the FIRST time. I got this error:
Notice: Undefined index: hey in C:...\Test2.php on line 3
The weried thing is that refreshing the Test2.php does not help, but if accessing Test1.php the second time makes everything right. Can anybody helps me explain this. This drove me crazy. thanks in advance
Bruce