title: CodeIgniter Session Expire in Config file
body: <p>I am working on CodeIgniter framework. </p>
  
  <p>What I want, is to set the session expiring time of the site to 3 hours ie, (3600*3=10800 seconds). </p>
  
  <p>But when I set the <code>$config['sess_expiration'] = 10800;</code> in <strong>config.php</strong>, the session is getting expired within around 30 minutes of idle and is redirected to login page.</p>
  
  <p>Why is this happening?</p>
  
  <p>These are some of my session settings in config</p>
  
  <pre><code>  $config['sess_cookie_name']     = 'ci_session';
     $config['sess_expiration']      = 10800;
        $config['sess_encrypt_cookie']  = FALSE;
    $config['sess_use_database']    = TRUE;
    $config['sess_table_name']      = 'ci_sessions';
    $config['sess_match_ip']        = FALSE;
    $config['sess_match_useragent'] = TRUE;
    $config['sess_time_to_update']  = 300;
  </code></pre>