CodeIgniter Forums
codeigniter sess_expire_on_close not working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: codeigniter sess_expire_on_close not working (/thread-54942.html)



codeigniter sess_expire_on_close not working - El Forum - 10-02-2012

[eluser]mouna[/eluser]
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

Code:
$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.


codeigniter sess_expire_on_close not working - El Forum - 10-02-2012

[eluser]keevitaja[/eluser]
CI session should have nothing to do with "remember me" auto-login.

values for "remember me" are stored in a cookie.


codeigniter sess_expire_on_close not working - El Forum - 10-02-2012

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


codeigniter sess_expire_on_close not working - El Forum - 06-20-2013

[eluser]redcloud80[/eluser]
Did you solved?