CodeIgniter Forums

Full Version: codeigniter sess_expire_on_close not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

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

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

El Forum

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

El Forum

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