I am developing one aspnet application in that i am using Sessions. if user login into the application and click on logout here i am closing session.
suppose if the
You can define what should happen when a Session expires in Global.asax.cs.
protected void Session_End(Object sender, EventArgs e) { // Do stuff here... }
Edit: There is no way for the web server to know that you have closed a web browser.