[thelist] [ASP Question] Session_OnEnd

Aaron Johnson ajlist at mindseye.com
Fri Oct 18 16:05:00 CDT 2002


> You are correct, the SID will become invalid before the onend event fires.
 -- That's not my experience at all.  I've used session.sessionid in
Session_onEnd many a time.  Check out the MSND docs on the session_onEnd
event:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref60/htm/ref_scrpt_glsesevntonend.asp

HTH,

AJ




> > sorry to keep bugging you folks with these stupid questions and thanks for
> > your continued help. I did get the Session_OnStart event to work by moving
> > it to the global.asa file in which it resides to the root web directory. I
> > have a new question tho.
> >
> > I now have a Session_OnEnd event I want to grab and when that happens, run
> > the following chunk of code:
> >
> > SQLQuery = "UPDATE Session_States "&_
> > 	     "SET session_end = getdate() "&_
> > 	     "WHERE session_ID = '"&Session.SessionID&"'"
> >
> > now... I'm thinking that since it's the ending of the session that's the
> > event, and this happens after the session has ended, the sessionID I'm
> > trying to grab will have already been discarded and this code will be
> > patently useless. Is this true? If it is, I'll need to come up with some
> > other way to grab the amount of time people are spending on the
> > website I'm
> > popping this stuff on. thanks again, all.
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>





More information about the thelist mailing list