codeigniter sess_expire_on_close not working

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.

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

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

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

Did you solved?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.