Welcome Guest, Not a member yet? Register   Sign In
when browser close session should be signout
#1

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;
Reply
#2

You cannot have a NULL for sess_save_path = NULL it needs the url path to save to when the handler is files!
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB