title: PHP ini_set session gc_maxlifetime not working
body: <p>I am trying to set gc_maxlifetime in PHP.</p>
  
  <p>Here is the code in 'header.php', and I include it every page.</p>
  
  <pre><code>ini_set('session.cookie_lifetime', 1);
  ini_set('session.gc_maxlifetime', 1);
  session_start();
  </code></pre>
  
  <p>I test it with </p>
  
  <pre><code>echo ini_get('session.gc_maxlifetime');
  </code></pre>
  
  <p>and it does set to 1.</p>
  
  <p>But it still <strong>keep</strong> login status, that is, session has <strong>not</strong> been deleted.</p>
  
  <p>What is the possible reason?</p>