Checking Session - php not printing
<pre><code>&lt;?php session_start();
$_SESSION['loggedIn'] = "no";
echo "Logged In: ". $_SESSION['loggedIn'];

if($_SESSION['loggedIn']=="yes"): 
    echo "logged in";
}
else{
    echo "not logged in";
}
?&gt;
</code></pre>

<p>I am simply trying to check if the session "loggedIn" is yes or no, but the program doesn't print anything.</p>

<p>Why does it not print anything?</p>
