I need help with PHP session variables. I am registering them, and then they print fine from the same page, but other pages are not getting them correctly.
Here is the page that is setting them
if($logIn){
session_start();
$_SESSION['name'] = $username;
$_SESSION['pass'] = $check[1];
$_SESSION['email'] = $email;
$_SESSION['addr'] = $check[3];
echo $_SESSION['name']." is ";
echo "logged in";
} else {
echo "nogo";
}
fclose($fp);
and then the page linked to has
<body>
<?php include '../header.php'; ?>
<?php echo $_SESSION['name']."lets go"; ?>
And it will not print anything...can't figure this out.
Thanks in advance!