• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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