title: Session unexpectedly lose
body: <p>I was wondering that why my session always losing unexpectedly. My website almost depends on session, if session lose, it will redirect to login page.</p>
  
  <p><strong>Here is my code*</strong></p>
  
  <pre><code>&lt;?php
  session_start();
  if(!isset($_SESSION['login'])){
  session_destroy();
  header("Location:login.php");
  exit();
  }
  include_once("action.php");
  ?&gt;
  </code></pre>
  
  <p>How to fix it?? Thank in advance</p>