title: PHP Notice: Undefined index Error with Session
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3346822/php-notice-undefined-index-where-the-session-variable-is-defined">PHP: Notice: Undefined index where the session variable is defined</a><br>
    <a href="https://stackoverflow.com/questions/4261133/php-notice-undefined-variable-and-notice-undefined-index">PHP: “Notice: Undefined variable”  and “Notice: Undefined index”</a>  </p>
  </blockquote>
  
  
  
  <p>Ok, so this is the Error:</p>
  
  <blockquote>
    <p>Notice: Undefined index: overview_id in C:\xampp\htdocs\site\home.php on line 6</p>
  </blockquote>
  
  <p>And this is my code:</p>
  
  <pre><code> &lt;?php session_start();
  
     $sess = $_SESSION["overview_id"];
  
     if(isset($sess)){
       header("Location: account.php");
     }
  
   ?&gt;
  </code></pre>
  
  <p>Any help would be cool.</p>
  
  <p>Thank you.</p>