I want to clear session Id of a logged in user on closing a browser window of the same after Login in asp.net with c# 3.5 server side. After logging in with the credentials , if in case the browser window is closed the session must get cleared. Browser used is Internet Explorer.
What I have tried:
I am able to clear the session using Session.abandon() on clicking log out button. But how to clear the session id of the logged in user if in case the browser window is being closed.