473,498 Members | 703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the value of Session.Timeout triggers a call to Global.asax.Session_End function at end of request

- I'm using .NET Framework 1.1.

I just noticed that whenever I change the value of Session.Timeout (no
matter which aspx page this happens on), at the end of the request,
the 'Session_End' function gets called in my global.asax code. --More
specifically, it only happens when the page is setting the value of
the timeout to a value different than what it currently is.-- Yet,
the session remains alive, and any variables stored in the Session
object remain available to my next requests. It's as if it's not a
"real" end of session, and that the firing of the 'Session_End' method
call is just an unfortunate side-effect of perhaps some bug in the
framework.

This causes a serious bug in my code because I perform some clean-up
of resources in the Session_End, but since the session is not really
over, the following requests try to access the resources that no
longer exist because I performed the clean up.

Has anyone experienced this? Is this a bug or as designed? And if it
is by design (I sure hope it isn't), then I would like to know how I
can distinguish a 'Session-End' call that really means the end of the
session vs. one that simply means I just changed the timeout setting.

And just in case someone raises the question... the reason our aspx
pages change the session timeout setting is because some pages have
more form fields than others and therefore take longer to fill out by
users. In such cases, it is desirable to us that we temporarily make
the session timeout longer for such pages, to allow users enough time
to fill out the form without losing their work.

Thanks in advance
Sam
Nov 18 '05 #1
1 2043
nobody has any ideas? It seems like a pretty fundamental problem to
me. I'm surprised I didn't find any posts on the subject before...
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1244
by: mg | last post by:
I can't get WebForm1 to load load automatically after a session timeout, with the following code. How can I do so In Web.config <sessionState mode="InProc timeout="1" / In Global.asax.cs
4
9154
by: Kim Bach Petersen | last post by:
I would like to record user behavior data stored in session variables. Since the data is modified throughout each session it seemed obvious to store the data when the session terminates - using...
4
8817
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: ...
5
1932
by: anonmous | last post by:
Hello, I am creating a pdf via some code. Now when the pdf is created, I assign the filename to a session variable and open a new window with the pdf. Now when the user closes the pdf window, I...
5
6704
by: news.microsoft.com | last post by:
We are logging many events on our application but cant seem to discover how to determine who the user was in the session end event, as any session storage seems to have disapeared at the point at...
0
1271
by: richsonn | last post by:
We are using an out-of-process COM object--created with HttpContext.Current.Server.CreateObject("Class.object")--in an VB/ASP.NET 1.x application. The COM object releases a-ok when we use...
3
2872
by: thomson | last post by:
Hi All, i do have an website with the URL http://localhost/application/ASEAN-ANZ, Once i hit the application, it goes to the Global.asax. but after that if i tried to change the URL...
7
2951
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...
3
2102
by: dmalhotr | last post by:
Hi, I would like to know if there was a way to trap a session timeout on an asp.net event. What I mean is that I've set a session timeout in the web.config file. What I would like to do is...
0
7124
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,...
0
6998
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...
0
7163
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,...
1
6884
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
7375
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
5460
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,...
1
4904
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...
0
3090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.