What Event Occurs When Someone Leaves Your Web Site?

  • Thread starter Thread starter Ross Culver
  • Start date Start date
R

Ross Culver

I need to ensure that session variables are removed whenever someone leaves
my web site. My understanding is that this should be happening
automatically with the session mode set to InProc. But it's not. Every
machine I'm testing this on does the same thing, but then again, everyone is
using Internet Explorer 7.0 with multiple tabs active.

Also, this problem just popped up, probably due to a change I've made, but I
don't have a clue what that might have been.

Thanks.

Ross
 
There is no event when someone "leaves" a web site. HTTP is strictly
Request/Response, which means that the server has no idea when it receives a
Request from a client whether it will ever receive another one. That is why
there are Sessions. Sessions are managed by timers that are reset whenever a
fresh Request comes in from the same client. When the timer elapses, the
Session ends.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
Back
Top