Hi folks,
When browser is closed then automatically user will be logout and redirect to the login page.
How to logout when browser is closed
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasham SabadraRank #116 · 19.3K reputationPosted Feb 19, 2015, 10:42 PM EST
Following are few links, please have a look once.
http://vaibhav-salwe.blogspot.fi/2012/05/log-out-user-on-browser-close.html
http://stackoverflow.com/questions/1366820/logoff-user-when-browser-tab-page-is-closed-asp-net-mvc
http://stackoverflow.com/questions/23632725/how-do-i-log-a-user-out-when-they-close-their-browser-or-tab-in-asp-net-mvc
http://www.codeproject.com/Tips/566217/Session-killing-logout-in-server-when-browser-is-c