title: How to create "remember me checkbox" using Codeigniter session library?
body: <p>in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library</p>
  
  <pre><code>     session-&gt;set_userdata('username')
  </code></pre>
  
  <p>this will save the session -I believe- for some time</p>
  
  <p>I want to provide a "remember me" checkbox in the login form so the user can save the session forever - could not find a way to save the session forever!?</p>
  
  <p><strong>Note:</strong>$sess_expiration will not work because it sets expiration date for all users and what I want to do is setting the expiration date based on his preferences </p>
  
  <p>is that possible? and how to do it?</p>
  
  <p>Thanks</p>