<?php session_start();
$_SESSION['loggedIn'] = "no";
echo "Logged In: ". $_SESSION['loggedIn'];
if($_SESSION['loggedIn']=="yes"):
echo "logged in";
}
else{
echo "not logged in";
}
?>
I am simply trying to check if the session "loggedIn" is yes or no, but the program doesn't print anything.
Why does it not print anything?