How to increase or decrease the lifetime of a session?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/520237/how-do-i-expire-a-php-session-after-30-minutes">How do I expire a PHP session after 30 minutes?</a><br>
  <a href="http://stackoverflow.com/questions/6360093/how-to-set-lifetime-of-session">How to set lifetime of session</a>  </p>
</blockquote>



<p>How to increase or decrease the lifetime of a session?
My requirement is session should timeout and all the session variables should be unset automatically after the prescribed time limit.
I used this code but the session did not timeout.Why?</p>

<pre><code>ini_set("session.gc_maxlifetime", 60);// should timeout after 1 minute
</code></pre>
