Welcome Guest, Not a member yet? Register   Sign In
codeigniter sess_expire_on_close not working
#1

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

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

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB