Hi
User should be automatically logout if he/she closes the session without proper steps like closing the browsing without logging out or shut downing the system without logging out or system shutdowns because of power issues.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Aug 21, 2012, 11:36 PM
I think the only good way to do this is by setting a timeout on the session variables on the server. A web server has no way to know for sure whether a user has closed his browser or not.Javascript is not a good option, since you can disable it client-side.
but you can detect browser closing event when user click on [X] button.
please refer
http://weblogs.asp.net/kodali/archive/2010/04/29/asp-net-session-on-browser-close.aspx
http://www.codeproject.com/Articles/10771/Detect-browser-closing-through-clicks-on-the-X-but
hope this will help you.
Akkiraju IvaturiPosted Aug 21, 2012, 10:40 PM
Sukesh MarlaPosted Aug 21, 2012, 12:54 PM
Session values get cleare autoatically when browser closes or system shutdowns
Hope this helped, check this is correct answer if it is.