SyntaxFix
Write A Post
Hire A Developer
Questions
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.