title: Why is the session not expiring on browser close when session.cookie_lifetime=0?
body: <p>I set up a test version of a PHP coded website which uses sessions to handle user logins. On the test server, the session would expire on browser close, since copying everything to the "clean" live server, the session stays in place on browser close and the user is still logged in even the next day after full system reboot.</p>
  
  <p>In php.ini</p>
  
  <pre>; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  ; http://www.php.net/manual/en/session.configuration.php#ini.session.cookie-lifetime
  session.cookie_lifetime = 0</pre>
  
  <p>Which implies that it should expire on browser restart.</p>
  
  <p>I thought maybe it was being overridden somewhere, but if I print_r the session_get_cookie_params in PHP I get</p>
  
  <pre><code>Array
  (
      [lifetime] =&gt; 0
      [path] =&gt; /
      [domain] =&gt; 
      [secure] =&gt; 
      [httponly] =&gt; 
  )
  </code></pre>
  
  <p>Is there something I am missing?</p>