Unknow index of session : <p>Ok guys when I try to run my simple php code I get this error: Notice: Undefined index: Status, here is my code:</p>

<pre><code>&lt;?php 
    session_start();
?&gt;
&lt;!DOCTYPE HTML&gt;
&lt;html&gt;
    &lt;head&gt;
        ---&gt;All links
    &lt;/head&gt;
    &lt;body&gt;
        &lt;?php 
            if($_SESSION['Status']=='1'){
        ?&gt; 
            ...---&gt;NAV1

        ?&gt;  
            &lt;?php
            }else{
        ?&gt;
          ...NAV2---&gt;
        &lt;?php 
            }
        ?&gt;
        &lt;/nav&gt;
    &lt;/body&gt;
</code></pre>

<p>The error is on " <code>if($_SESSION['Status']=='1'){</code>", this code will check if user is logged or not then shows a proper navbar.</p>
