EllisLab text mark
Advanced Search
     
codeigniter sess_expire_on_close not working
Posted: 02 October 2012 12:36 PM   [ Ignore ]
Joined: 2012-08-29
4 posts

I’m trying to implement a login form with a “remember me” checkbox

the problem is when I set “sess_expire_on_close” in the config file to true

$config['sess_expire_on_close'TRUE

when I close the browser, it dosen’t work, I always have access like if I’m logged

I’m using codeigniter 2.1.2

Any help will be appreciated.

 
Posted: 02 October 2012 01:11 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2010-08-26
122 posts

CI session should have nothing to do with “remember me” auto-login.

values for “remember me” are stored in a cookie.

 
Posted: 02 October 2012 02:12 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-08-29
4 posts

yes but if I want to implement “remember me” auto-login, I need to get session expired when browser is closed.