title: Session data gets confused on web host
body: <p>Messed up = I log-in to my account, if I change page, I'm in another random account from the database (but never my account again). This only happens on external host, local host works fine.</p>
  
  <p>I have <code>session_start()</code> on all pages, and I only set session data in one file, which is not included anywhere on any page once the person is logged. </p>
  
  <p>I found <a href="https://stackoverflow.com/questions/3933441/sessions-get-messed-up-on-external-host">this post</a> and <a href="https://stackoverflow.com/questions/16624567/php-sessions-getting-unset?lq=1">this other post</a></p>
  
  <p>Tried this on every page</p>
  
  <pre><code>header("Cache-Control: no-cache, must-revalidate"); 
  header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
  </code></pre>
  
  <p>And my .htaccess redirects website.com to www.website.com, so the URL is unique. </p>
  
  <p>I checked my code, and I don't change the session data anywhere after the user is logged, so I don't know what is causing this problem.</p>
  
  <p>Any ideas?</p>