title: Codeigniter Setting Remember Me in Sessions
body: <p>I'm trying to implement remember me function to my login form. When user checks the checkbox or not var_dumping the session expiration data is returning 63072000. I couldn't be able to set that and i don't understand why?</p>
  
  <p>How i var_dump:</p>
  
  <pre><code>var_dump($this-&gt;session-&gt;sess_expiration); // returning 63072000
  </code></pre>
  
  <p>form view:</p>
  
  <pre><code>&lt;input name="rememberme" value="rememberme" type="checkbox" /&gt;
  </code></pre>
  
  <p>login model: </p>
  
  <pre><code>$rememberme = $this-&gt;input-&gt;post('rememberme');
  if((!isset($rememberme)) || ($rememberme != "rememberme")){
  $this-&gt;session-&gt;sess_expiration = 10800; // 3 hours
  $this-&gt;session-&gt;sess_expire_on_close = TRUE;
  }
  $this-&gt;session-&gt;set_userdata($data);
  </code></pre>
  
  <p>session config: </p>
  
  <pre><code>$config['sess_cookie_name']     = 'cisession';
  $config['sess_expiration'] = 0;
  $config['sess_expire_on_close'] = FALSE;
  $config['sess_encrypt_cookie']  = TRUE;
  $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>