Sep 14, 2011 04:54 PM|markfitzme|LINK
It's not going to get called when you close the browser. How does the server know you closed the browser? Your browser isn't conneted directly to the server during the entire time. It is only connected while it is getting the html, images, css, etc.. Once
it's done the connection is closed. That's why you have a Session object, because the web is stateless and the clients are not connected in a true session. The session will continue regardless of your browser until IIS determines that the session has reached
the timeout, the application hasn't been used during a certain period of time, or the application pool crashes or is recycled.