PHP Session data not passing!!!
I set a $_SESSION var on one page starting the session on both pages that use the var. So not starting the session is not the problem. ANYWAY I set it on one page and print it just to be sure that it is set, and it is. THEN I redir to another page, start the session and check the var and it is empty!!! It works for me on IE but not on my buddys pc using IE... It also doesnt work on chrome on either pc. This is the code that sets the var. THIS ONE WORKS BECAUSE I CAN ECHO IT ON THIS PAGE:
//JUST AN EXCERPT
$pwd = $row['pwd'];
$prepass = md5($pass);
if($prepass == $pwd){
$yes = "yes";
$_SESSION['MNCADMINLI'] = $yes;
}
if ($_SESSION['MNCADMINLI'] == 'yes'){
echo $_SESSION['MNCADMINLI'];
}
//IT ECHOS JUST FINE HERE
----------------------------------------------------------------
//THIS IS THE SECOND PAGE
session_start();
if ($_SESSION['MNCADMINLI'] == 'yes'){
//A BUNCH OF TABLES
echo $_SESSION['MNCADMINLI'];
}
//THIS DOES NOT WORK...
----------------------------------------------------------------
Anybody got a clue?
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."