title: PHP Sessions: XAMPP Apache PHP Sessions persists even if I restart PC
body: <p>I have a problem because Session variables are persisting even after I close the browser, shut down apache and restart the computer.  </p>
  
  <p>I am storing a user_id session variable if the users logs in.  However I did not implement a logout yet.  In any case, the sessions should not persists after I restart my PC.  </p>
  
  <p>In php.ini the session cookie lifetime is set to 0.  Here's a copy paste:</p>
  
  <pre><code>; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  ; http://php.net/session.cookie-lifetime
  session.cookie_lifetime=0
  </code></pre>
  
  <p>Any ideas?  This is the way I create the session variables:</p>
  
  <pre><code>if (!isset($_SESSION))
  {
        session_start();
  }
  $_SESSION["username"] = $username;
  </code></pre>
  
  <p>Thank you</p>