[2008] asp.net session

D

Doken13

When I close my browser (IE7) I see that the session in IIS is not closed.
Is there any way (by typing code in my project) to close the session when I
close the browser ?
 
G

George Ter-Saakov

nope (in a reliable way).
It will expire automatically after 20 minutes (configurable) of inactivity.


George.
 
M

Mark Fitzpatrick

Because http is a stateless protocol, that means the browser is completely
disconnected from the web server the instant it completes pulling the last
resource (image, stylesheet, etc.) for that particular page. The web server
has no notification of anything else the user does unless they make another
request to the server. That's also why actions like closing the browser
won't affect the session since the web server has finished talking to the
browser and is just waiting to see if the browser contacts the server again
before it times out.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top