473,549 Members | 2,628 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2795
Does the machine.config file have a setting that is overriding your
web.config file?
"Steve M" <st***@nospam.c om> wrote in message
news:T2******** *************@t wister.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.c om>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!References: <T2************ *********@twist er.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************ ********@twiste r.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.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-online.de!npeer .de.kpn-eurorings.net!
newsfeed.news2m e.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.ea rthlink.net!cyc lone.socal.rr.c om!cyclone2.kc. rr.com!
news2.kc.rr.com !twister.rdc-kc.rr.com.POSTE D!53ab2750!not-for-mail
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1628 40
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******** ********@cpmsft ngxa06.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.c om>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!References: <T2************ *********@twist er.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************ ********@twiste r.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.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!npeer.de.k pn-eurorings.net! newsfeed.news2m e.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.ea rthlink.net!cyc lon
e.socal.rr.com! cyclone2.kc.rr. com! news2.kc.rr.com !twister.rdc-kc.rr.com.POSTE D!53ab2750!not-for-mail
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1628 40 !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.c om>
!Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!References: <T2************ *********@twist er.rdc-kc.rr.com> <#8************ **@tk2msftngp13 .phx.gbl>
<gT************ ********@twiste r.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************ ********@twiste r.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.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-online.de!tisca li!newsfeed1.ip .tiscali.net!
news.tele.dk!ne ws.tele.dk!smal l.news.tele.dk! newsfeed.news2m e.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.ea rthlink.net!
cyclone.socal.r r.com!cyclone2. kc.rr.com!news2 .kc.rr.com!twis ter.rdc-kc.rr.com.POSTE D!53ab2750!not-for-mail
!Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:1630 62
!X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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******* *********@cpmsf tngxa06.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.c om>
!> !Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
!> !References: <T2************ *********@twist er.rdc-kc.rr.com>
!<#8*********** ***@tk2msftngp1 3.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************ ********@twiste r.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.p hx.gbl!TK2MSFTN GP08.phx.gbl!ne wsfeed00.sul.t-online.de!t-onlin
!e.de!npeer.de. kpn-eurorings.net!
!>
!newsfeed.news2 me.com!elnk-nf2-pas!elnk-pas-nf1!newsfeed.ea rthlink.net!cyc lon
!e.socal.rr.com !cyclone2.kc.rr .com!
!> news2.kc.rr.com !twister.rdc-kc.rr.com.POSTE D!53ab2750!not-for-mail
!> !Xref: cpmsftngxa06.ph x.gbl
!microsoft.publ ic.dotnet.frame work.aspnet:162 840
!> !X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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
7415
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 session event is firing but it is not executing any of my delete code. Can somebody tell me what I am doing wrong? Thanks in advance
2
3374
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 state I changed the timeout to "2" and made sure the mode was "InProc". Then I opened my app, did some stuff, and closed it, expecting in two minutes'...
6
2377
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 sessions (average) the memory rises about 300 MB's in an hour. I've checked the database (SQL Server 2000) and seen that there are lots of sleeping...
0
1678
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. When the login is successful login page writes back javascript
17
2094
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 to send an email with some summary info of what was added/edited. I can keep track of the records by using the sessionid or user's login, but how...
5
2473
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 IE, the session end & application end event are not firing even though i put the break point there. Could u give me the solution for this how i...
5
9099
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 don't want to depend on the session timeout factor since it may end too soon or it may hang around too long. I can't find any event that fires when...
6
1737
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 some internet GIS mapping web tool that comes "precanned" with lots of mapping ability and its pages run on JSP. Theasp.net Session_End event is...
7
2956
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 have the same function in the Session_Begin and the Application events. I am capturing the Session beginning and the App begin and end but no...
0
7541
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7734
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6065
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5385
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5107
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1074
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
781
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.