If i have my website's tab open on google chrome , along with other tabs are open, session is not destroying if i close my website's tab. To destroy the session i need to close the whole browser, including all tabs. Is ther anyway i can log users out when they close just the website's tab only and not the whole browser? I'm using codeIgniter. and config setting is as below
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 0;
$config['sess_expire_on_close'] = TRUE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;