title: Troubles with Codeigniter's Native Session
body: <p>I'm using Codeigniter's Native Session Class for storing users information, but i have a serious problem. It appears that the session times out when the user is inactive for about half an hour and logs him out.</p>
  
  <p>My config file looks like this:</p>
  
  <pre><code>$config['sess_cookie_name'] = 'cisession';
  $config['sess_expiration'] = 60*60*24*30*12*2;
  $config['sess_expire_on_close'] = FALSE;
  $config['sess_encrypt_cookie'] = FALSE;
  $config['sess_use_database'] = FALSE;
  $config['sess_table_name'] = 'ci_sessions';
  $config['sess_match_ip'] = FALSE; 
  $config['sess_match_useragent'] = TRUE;
  $config['sess_time_to_update'] = 7200;
  </code></pre>
  
  <p>The PHPSESSID in browser is not destroyed when the user is logged out and it expires in two years as I've set it in config file.</p>
  
  <p>I don't know what are the common problems with native session class because everyone seems to be happy with it, so can somebody work it out what is the most likely thing that is causing this problem?</p>
  
  <p>Edit: For those who aren't familiar with codeigniter's native session class here is link
  <a href="http://codeigniter.com/wiki/Native_session" rel="nofollow">http://codeigniter.com/wiki/Native_session</a></p>