Re: What Event Occurs When Someone Leaves Your Web Site?
- From: "Ross Culver" <rculver@xxxxxxxxxxxxxxx>
- Date: Thu, 14 Jun 2007 15:27:56 -0500
Thanks, Mark.
So when does the page.dispose event take place? I'd like to call the
session.abandon, but I don't know when. I can't call it in the page.unload
since that defeats the purpose of having it in the first place. If I
understand you correctly, you're saying that the only way to clear the
session variables under the conditions I've describe is with the session
timeout, correct?
Thanks again, Ross.
"Mark Fitzpatrick" <markfitz@xxxxxxxxxx> wrote in message
news:%23JZfCGsrHHA.632@xxxxxxxxxxxxxxxxxxxxxxx
No event. Keep in mind, HTTP is a stateless protocol. That means that the
connection to the browser is closed the instant it is done. In http 1.0,
that connection occured as many times as there were files referenced in
the HTML file. In http 1.1, it re-uses the existing connection to get all
the referenced files then closes the connection. After that, the server
and browser don't communicate again until you do something such as click a
link. Session variables will terminate after the session timeout occurs
(unless you programatically call a session.abandon), but the browser won't
communiate with the server when it leaves the site.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006
"Ross Culver" <rculver@xxxxxxxxxxxxxxx> wrote in message
news:%23cMIqCsrHHA.4676@xxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- What Event Occurs When Someone Leaves Your Web Site?
- From: Ross Culver
- Re: What Event Occurs When Someone Leaves Your Web Site?
- From: Mark Fitzpatrick
- What Event Occurs When Someone Leaves Your Web Site?
- Prev by Date: Re: Urgent code needed
- Next by Date: Re: HttpHandler Question
- Previous by thread: Re: What Event Occurs When Someone Leaves Your Web Site?
- Next by thread: Re: What Event Occurs When Someone Leaves Your Web Site?
- Index(es):
Relevant Pages
|