CodeIgniter Forums
CI 3.1.9 session not deleted after Chrome closed - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: CI 3.1.9 session not deleted after Chrome closed (/thread-74179.html)



CI 3.1.9 session not deleted after Chrome closed - huangnam - 08-13-2019

My config:
Code:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'mysite_ci_session';
$config['sess_expiration'] = 0;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

Expected: session deleted after browser close.

It works on:
- Microsoft Edge 44.18362.267.0
- Firefox 68.0.1 (64-bit)
- Yandex 19.7.2.455
- Opera 62.0.3331.116

But not works on Chrome 76.0.3809.100 (Official Build) (64-bit).

Please help!


RE: CI 3.1.9 session not deleted after Chrome closed - php_rocs - 08-13-2019

@huangnam,

What are the browser settings for Chrome v76.0.3809.100. Does it delete cookies when the browser is closed?


RE: CI 3.1.9 session not deleted after Chrome closed - dave friend - 08-13-2019

Chrome only closes (expires) a session when the application is closed not when just a tab is closed. Are you saying the session remains active after exiting Chrome and then restarting it?