in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library
session->set_userdata(\'username\') <
You can set sess_expiration to 0 and then set a custom variable into the session like, remember_me=1. Check this value and destroy the session if needed after a time. This would be a workarround.