Thanks for the help.
You mentioned that Session_End fires on a background thread, so it may not
fire exactly when the timeout is reached. Do you know a possibly reason why
mine is firing WAY after that timeout value is reached?
Is there anything in particular that I might be doing with Session state
datd, or anythign else, that could possibly cause this strange behavior?
"Jim Cheshire [MSFT]" <jamescheonline.microsoft.com> wrote in message
> Session_End fires on a background thread. Therefore, it may not fire
> exactly when the timeout value is reached.
> If you want to track how long someone's been on your site, you will havecpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed 00.sul.t-online.de!newsfee> pass that information between requests. The problem is that you won't be
> able to track how long the user was on the last page on your site because
> there will be no final figure to take into account. Therefore, I think
> trying to do this is futile.
> As for writing your own thread to do this, you can certainly do it. I
> would make sure to use the IsClientConnected method to ensure that you
> don't kill any sessions that you shouldn't kill.
> Jim Cheshire
> Developer Support
> This post is provided as-is with no warranties and confers no rights.
> --------------------> 07:20:15 CDT)> >From: "Steve M" <stevenospam.com>
> >Newsgroups: microsoft.public.dotnet.framework.aspnet
> >Subject: How to find out time on site ??
> >Lines: 15
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <3WsWa.65511$6a3.1632962twister.rdc-kc.rr.com>
> >Date: Fri, 1 Aug 2003 07:23:18 -0500
> >NNTP-Posting-Host: 22.214.171.124
> >X-Complaints-To: [email]abuserr.com[/email]
> >X-Trace: twister.rdc-kc.rr.com 1059740415 126.96.36.199 (Fri, 01 Aug 2003>> >NNTP-Posting-Date: Fri, 01 Aug 2003 07:20:15 CDT
> >Path:d01.sul.t-online.de!t-online.de!newspeer1-gui.server.ntli.net!ntli.net!peer0>1.cox.net!peer02.cox.net!cox.net!news-server.columbus.rr.com!cyclone2.kc.rr.>microsoft.public.dotnet.framework.aspnet:164102> com!news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail> >Xref: cpmsftngxa06.phx.gbllater> >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
> >I would like to track how long a user spends on my site.
> >I normally would do that in Session_End -- however, it is firing waycannot> made> >than the Timeout value.
> >First, does anyone know why that might happen.
> >Second, how can I find out how much tmie has passed since the user last> thread> >a request (other than me doing it myself with every request?)
> >And also, does anyone think there would be a problem if I have my own> >that abandons the session after a certain amount of time -- since Itimely> >rely on Session_End for, some reason, firing at the appropriate time?
> >Really, what I'd like to know is why Session_End is not firing in a>> >manner -- even when the server is not especially busy, the sessions end
> >maybe, on average 40 minutes LATER than the timeout value.
> >Thanks in advance.