473,395 Members | 2,446 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 2780
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Sampriti | last post by:
I am trying to delete a file from a disk when the user's session ends. So I am putting my file.delete code in Session_End event. I ran the application in the debug mode. When the session timesout...
2
by: Jim Owen | last post by:
I know I';ve posted on this topic before, but it still doesn't work. I have a Session_End event in my Global.asax file, but it never fires. I have gone into my web.config file and in session...
6
by: Gonenc Ercan | last post by:
Hi, I ve ended up debugging a ASP.NET project (with about 380 files on the project .NET Framework 1.0 on IIS 5.0) which has a memory leak... The memory rises too fast. With about 25-30 active...
0
by: Ram | last post by:
I have a start page for my application default.htm which contains four frames. header.htm login.aspx rightside.htm footer.htm login.aspx conatins username, password fields and login button....
17
by: Alphonse Giambrone | last post by:
I am building a web app for users to add/edit data. They may add/edit several records during a session. When they are done (not necessarily immediately, could be 10 or more minutes later), I need...
5
by: Raghu Raman | last post by:
HI, am using a simple project in asp.net using c#. if i put the break point in the application start & session start event , they are firing good .BUT WHEN i close my project while running on...
5
by: news.microsoft.com | last post by:
Hi everyone, I need some help (may be in the form of some sample code) for the subject question. I have an ASP.NET/C# application. I need to do quite a few tasks when the session ends. I...
6
by: Marcus | last post by:
I have an ASP.Net 2.0 app that needs to jump out onto another web server running a java server page website (Apache TomCat 4.1.12) that I control. I hate that it needs to do this, but we are using...
7
by: David Lozzi | last post by:
Howdy, I'm trying to capture the session end event. I put a spot of code in the Session_End event in the Global.asax.vb file. The function simply writes to a database table logging the event. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.