472,145 Members | 1,321 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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

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
Nov 17 '05 #1
5 2672
Does the machine.config file have a setting that is overriding your
web.config file?
"Steve M" <st***@nospam.com> wrote in message
news:T2*********************@twister.rdc-kc.rr.com...
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

Nov 17 '05 #2
> 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?
Nov 17 '05 #3
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" <st***@nospam.com>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!References: <T2*********************@twister.rdc-kc.rr.com> <#8**************@tk2msftngp13.phx.gbl>
!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: <gT********************@twister.rdc-kc.rr.com>
!Date: Tue, 29 Jul 2003 02:22:04 GMT
!NNTP-Posting-Host: 65.28.105.11
!X-Complaints-To: ab***@rr.com
!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!newsfeed 00.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!cy clone2.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?
!
!
!
Nov 17 '05 #4
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[MSFT]" <yh*****@online.microsoft.com> wrote in message
news:Ee****************@cpmsftngxa06.phx.gbl...
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" <st***@nospam.com>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!References: <T2*********************@twister.rdc-kc.rr.com> <#8**************@tk2msftngp13.phx.gbl> !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: <gT********************@twister.rdc-kc.rr.com>
!Date: Tue, 29 Jul 2003 02:22:04 GMT
!NNTP-Posting-Host: 65.28.105.11
!X-Complaints-To: ab***@rr.com
!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!newsfeed 00.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?
!
!
!

Nov 17 '05 #5
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" <st***@nospam.com>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!References: <T2*********************@twister.rdc-kc.rr.com> <#8**************@tk2msftngp13.phx.gbl>
<gT********************@twister.rdc-kc.rr.com> <Ee**************@cpmsftngxa06.phx.gbl>
!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: <Bn********************@twister.rdc-kc.rr.com>
!Date: Tue, 29 Jul 2003 17:44:01 GMT
!NNTP-Posting-Host: 65.28.105.11
!X-Complaints-To: ab***@rr.com
!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!newsfeed 00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!
news.tele.dk!news.tele.dk!small.news.tele.dk!newsf eed.news2me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.earthlink.net!
cyclone.socal.rr.com!cyclone2.kc.rr.com!news2.kc.r r.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.
!
!
!"Yan-Hong Huang[MSFT]" <yh*****@online.microsoft.com> wrote in message
!news:Ee****************@cpmsftngxa06.phx.gbl...
!> 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" <st***@nospam.com>
!> !Newsgroups: microsoft.public.dotnet.framework.aspnet
!> !References: <T2*********************@twister.rdc-kc.rr.com>
!<#8**************@tk2msftngp13.phx.gbl>
!> !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: <gT********************@twister.rdc-kc.rr.com>
!> !Date: Tue, 29 Jul 2003 02:22:04 GMT
!> !NNTP-Posting-Host: 65.28.105.11
!> !X-Complaints-To: ab***@rr.com
!> !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!newsfee d00.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?
!> !
!> !
!> !
!>
!>
!
!
!
Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jim Owen | last post: by
6 posts views Thread by Gonenc Ercan | last post: by
17 posts views Thread by Alphonse Giambrone | last post: by
5 posts views Thread by Raghu Raman | last post: by
5 posts views Thread by news.microsoft.com | last post: by
6 posts views Thread by Marcus | last post: by
7 posts views Thread by David Lozzi | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.