title: Sessions not working PHP
body: <p>My website doesn't start a session when I visit, I don't know why but my website works like this:</p>
  
  <pre><code>&lt;?php
  
  session_start(); 
  
  $title = "Home"; 
  
  include("include/header.php");
  include("include/functions.php"); 
  
  ?&gt;
  
  ...HTML stuff here...
  
  &lt;?php 
  
  include("footer.php"); 
  
  ?&gt;
  </code></pre>
  
  <p>But when I check with Cookies (add-on for Firefox) there are no sessions started... I used session_regenerate_id(); but it doesn't work at all.</p>
  
  <p>It fails to log in since there are no sessions, I do not have any session_destroy() in my website, only in the logout.</p>
  
  <p>But funny thing is, when I login (without refreshing or navigating just yet) and then click on the logout button, there is a session on my website, then when I log in again, it tells me that I am logged in BUT if I login and navigate or refresh, it doesn't tell me that I'm logged in since there are no sessions...</p>
  
  <p>Logout:</p>
  
  <pre><code>&lt;?php
  
  session_start();
  session_destroy();
  
  setcookie("cookie-name", "", time()-60, "", "", 0);
  
  header("Location: ../index.php");
  
  exit;
  
  ?&gt;
  </code></pre>
  
  <p>What do I do?</p>