Sessions...
Posted: Fri Jul 09, 2010 9:24 am
I have two files: test.php and test2.php
test.php:
test2.php:
I go to test.php and in test2.php it echos FAILED..
Why doesn't the session variable carry over to test2.php? Thanks for your help.
test.php:
Code: Select all
<?php
$_SESSION['user'] = "test";
header('Location: test2.php');
?>Code: Select all
<?php
if(isset($_SESSION['user']))
{
echo "WORKED";
}
else
{
echo "FAILED";
}
?>Why doesn't the session variable carry over to test2.php? Thanks for your help.