title: reduce garbage collection time in codeigniter
body: <p><strong>Garbage collection function in CI</strong></p>
  
  <pre><code>function _sess_gc()
  {
      if ($this-&gt;sess_use_database != TRUE)
      {
          return;
      }
  
      srand(time());
      if ((rand() % 100) &lt; $this-&gt;gc_probability)
      {
          $expire = $this-&gt;now - $this-&gt;sess_expiration;
  
          $this-&gt;CI-&gt;db-&gt;where("last_activity &lt; {$expire}");
          $this-&gt;CI-&gt;db-&gt;delete($this-          ;
  
          log_message('debug', 'Session garbage collection performed.');
      }
  }
  </code></pre>
  
  <p>Im new in codeigniter and i have found this GC function in codeigniter which in the Session.php libraries folder.</p>
  
  <p>My problem is
  how to change the time for the GC to delete expired session?</p>
  
  <p>Example: I want it to delete expired session every 3mins..</p>
  
  <p>But this function will delete expired session from database if the probability percentage is met..</p>
  
  <p>Is there's a way of doing it?</p>