title: session.gc_maxlifetime not working for me
body: <p>i want to set session time out limit  by 3 min ,</p>
  
  <p>i have used this in the page</p>
  
  <p>ini_set("session.gc_maxlifetime", "50"); <strong>not working</strong></p>
  
  <p>Solution for this </p>
  
  <blockquote>
    <p>if (isset($_SESSION['LAST_ACTIVITY'])
    &amp;&amp; (time() -
    $_SESSION['LAST_ACTIVITY'] > 1800)) {
        // last request was more than 30 minates ago
        session_destroy();   // destroy session data in storage
        session_unset();     // unset $_SESSION variable for the runtime }
    $_SESSION['LAST_ACTIVITY'] = time();
    // update last activity time stamp</p>
  </blockquote>