• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session not closed after close the browser.

#1
session not closed after close the browser. when i reopen the url,the session is active. i am string the sessions.

In config file
***********
config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_sessions';

$config['sess_expiration'] = 7200;

$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = TRUE;

$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = FALSE;
Reply

#2
Did you close all the browser windows, or just one tab?

Cookies are kept unless you close all the windows:
https://stackoverflow.com/a/805900
Reply

#3
Also you may need to close and destroy the session.

PHP Code:
$this->session->unset_userdata('some_name');

// or

$array_items = array('username''email');

$this->session->unset_userdata($array_items);

$this->session->sess_destroy(); 
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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