Session lasting too long -- Session_End event firing way late !! ??

S

Steve M

Why are my sessions lasting so long?
I have them set to 20 minute timeout in config file?
The Session_End event is getting called an hour or more sometimes--well
after the user has stopped interacting with my site.
Anyone have any insight?
Thanks in advance
 
S

Scott M.

Does the machine.config file have a setting that is overriding your
web.config file?
 
S

Steve M

Does the machine.config file have a setting that is overriding your
web.config file?


No.
I recopied the project and now it is again working as expected -- however, I
don't have any idea what caused the problem.
I think that the Session_End is called from a background thread, which has a
lower priority--but it makes little sense that most of the sessions were
lasting on the order of an hour longer than expected.
Is there anything that could cause this?
 
Y

Yan-Hong Huang[MSFT]

Hello Steve,

I am not sure of what happened without having the solid repro steps. Maybe there is something wrong in the system at then.
Under that situation, try to restart your web application by changing some code in global.asax or etc. That forces the web
app reloaded by asp.net and may resolve the problem.

If you could reproduce this problem next time, please post here with more information. We are glad to be of assistance.
Thanks very much.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Steve M" <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!References: <[email protected]> <#[email protected]>
!Subject: Re: Session lasting too long -- Session_End event firing way late !! ??
!Lines: 13
!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: <[email protected]>
!Date: Tue, 29 Jul 2003 02:22:04 GMT
!NNTP-Posting-Host: 65.28.105.11
!X-Complaints-To: (e-mail address removed)
!X-Trace: twister.rdc-kc.rr.com 1059445324 65.28.105.11 (Mon, 28 Jul 2003 21:22:04 CDT)
!NNTP-Posting-Date: Mon, 28 Jul 2003 21:22:04 CDT
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!npeer.de.kpn-eurorings.net!
newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!cyclone2.kc.rr.com!
news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:162840
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!> Does the machine.config file have a setting that is overriding your
!> web.config file?
!
!
!No.
!I recopied the project and now it is again working as expected -- however, I
!don't have any idea what caused the problem.
!I think that the Session_End is called from a background thread, which has a
!lower priority--but it makes little sense that most of the sessions were
!lasting on the order of an hour longer than expected.
!Is there anything that could cause this?
!
!
!
 
S

Steve M

Unfortunately, it has shown up again!!
Is there anything in particular that COULD cause this problem?
What MIGHT cause Session_End to be called about an hour LATER than the
Session Timeout value?
Thanks again.


Yan-Hong Huang said:
Hello Steve,

I am not sure of what happened without having the solid repro steps. Maybe
there is something wrong in the system at then.
Under that situation, try to restart your web application by changing some
code in global.asax or etc. That forces the web
app reloaded by asp.net and may resolve the problem.

If you could reproduce this problem next time, please post here with more
information. We are glad to be of assistance.
 
Y

Yan-Hong Huang[MSFT]

Hello Steve,

Did it happened after some time repeatly? I suggest you install the latest framework and reinstall asp.net to see if the
problem could be resolved.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Steve M" <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!References: <[email protected]> <#[email protected]>
<[email protected]> <EemB#[email protected]>
!Subject: Re: Session lasting too long -- Session_End event firing way late !! ??
!Lines: 79
!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: <[email protected]>
!Date: Tue, 29 Jul 2003 17:44:01 GMT
!NNTP-Posting-Host: 65.28.105.11
!X-Complaints-To: (e-mail address removed)
!X-Trace: twister.rdc-kc.rr.com 1059500641 65.28.105.11 (Tue, 29 Jul 2003 12:44:01 CDT)
!NNTP-Posting-Date: Tue, 29 Jul 2003 12:44:01 CDT
!Organization: RoadRunner
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!
news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!
cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:163062
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Unfortunately, it has shown up again!!
!Is there anything in particular that COULD cause this problem?
!What MIGHT cause Session_End to be called about an hour LATER than the
!Session Timeout value?
!Thanks again.
!
!
!!> Hello Steve,
!>
!> I am not sure of what happened without having the solid repro steps. Maybe
!there is something wrong in the system at then.
!> Under that situation, try to restart your web application by changing some
!code in global.asax or etc. That forces the web
!> app reloaded by asp.net and may resolve the problem.
!>
!> If you could reproduce this problem next time, please post here with more
!information. We are glad to be of assistance.
!> Thanks very much.
!>
!> Best regards,
!> Yanhong Huang
!> Microsoft Online Partner Support
!>
!> Get Secure! - www.microsoft.com/security
!> This posting is provided "AS IS" with no warranties, and confers no
!rights.
!>
!> --------------------
!> !From: "Steve M" <[email protected]>
!> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !References: <[email protected]>
!<#[email protected]>
!> !Subject: Re: Session lasting too long -- Session_End event firing way
!late !! ??
!> !Lines: 13
!> !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: <[email protected]>
!> !Date: Tue, 29 Jul 2003 02:22:04 GMT
!> !NNTP-Posting-Host: 65.28.105.11
!> !X-Complaints-To: (e-mail address removed)
!> !X-Trace: twister.rdc-kc.rr.com 1059445324 65.28.105.11 (Mon, 28 Jul 2003
!21:22:04 CDT)
!> !NNTP-Posting-Date: Mon, 28 Jul 2003 21:22:04 CDT
!> !Path:
!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
!e.de!npeer.de.kpn-eurorings.net!
!>
!newsfeed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!cyclon
!e.socal.rr.com!cyclone2.kc.rr.com!
!> news2.kc.rr.com!twister.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail
!> !Xref: cpmsftngxa06.phx.gbl
!microsoft.public.dotnet.framework.aspnet:162840
!> !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!> !
!> !> Does the machine.config file have a setting that is overriding your
!> !> web.config file?
!> !
!> !
!> !No.
!> !I recopied the project and now it is again working as expected --
!however, I
!> !don't have any idea what caused the problem.
!> !I think that the Session_End is called from a background thread, which
!has a
!> !lower priority--but it makes little sense that most of the sessions were
!> !lasting on the order of an hour longer than expected.
!> !Is there anything that could cause this?
!> !
!> !
!> !
!>
!>
!
!
!
 

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,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top