title: Session taking page back to login?
body: <p>I am trying to access other pages only after I login. The Problem is when I submit data to the database to refresh pag2.php, and it takes me back to the login page which I do not want.</p>
  
  <p>How can I fix this problem? This is my logic:</p>
  
     
  
  <pre><code> pages.php
  
  &lt;?php
  session_start();
  if(!isset($_SESSION['log'])){
      header("location:login_page_crm.php");
   }
  
  ?&gt;
  </code></pre>