Though this question has multiple duplicates i could not find proper solution for me. Need Some help.
I have used ini_set(\'session.cookie_lifetime\', 0);
ini_set(\'session.cookie_lifetime\', 0);
You can do it using JavaScript by triggering an ajax request to server to destroy the session on onbeforeunload event fired when we closes the browse tab or window or browser.