CodeIgniter Forums
when browser close session should be signout - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: General (https://forum.codeigniter.com/forumdisplay.php?fid=1)
+--- Forum: Lounge (https://forum.codeigniter.com/forumdisplay.php?fid=3)
+--- Thread: when browser close session should be signout (/showthread.php?tid=71605)



when browser close session should be signout - kvanaraj - 09-03-2018

I tried to session out when browser closes but it will not working.


In config file

1,$config['sess_expire_on_close'] = TRUE;


$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 0;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;


RE: when browser close session should be signout - InsiteFX - 09-04-2018

You cannot have a NULL for sess_save_path = NULL it needs the url path to save to when the handler is files!