473,406 Members | 2,713 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,406 software developers and data experts.

Session_End problem

In Global asax the Session_End Sub fires off every now and then. I only want
it to fire when I call Session.Abandon() but it fires off totally randon
when just suring around in my ASP.NET solution. Does anyone have any ideas
abotu this why it happens?

best regards/
Lars Netzel
Nov 19 '05 #1
5 1730
"Lars Netzel" <ui****@adf.se> wrote in message
news:uL*************@TK2MSFTNGP14.phx.gbl...
In Global asax the Session_End Sub fires off every now and then. I only
want it to fire when I call Session.Abandon() but it fires off totally
randon when just suring around in my ASP.NET solution. Does anyone have
any ideas abotu this why it happens?


Sounds like you have your Session.Timeout property set to a really low
value...
Nov 19 '05 #2
nope, its set to 60 minutes

/Lars
"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
"Lars Netzel" <ui****@adf.se> wrote in message
news:uL*************@TK2MSFTNGP14.phx.gbl...
In Global asax the Session_End Sub fires off every now and then. I only
want it to fire when I call Session.Abandon() but it fires off totally
randon when just suring around in my ASP.NET solution. Does anyone have
any ideas abotu this why it happens?


Sounds like you have your Session.Timeout property set to a really low
value...

Nov 19 '05 #3
By default the Session_End event is called 20 minutes after that session's
last page request.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Lars Netzel" <ui****@adf.se> wrote in message
news:uL*************@TK2MSFTNGP14.phx.gbl...
In Global asax the Session_End Sub fires off every now and then. I only
want it to fire when I call Session.Abandon() but it fires off totally
randon when just suring around in my ASP.NET solution. Does anyone have
any ideas abotu this why it happens?

best regards/
Lars Netzel

Nov 19 '05 #4
ok, that's cool but I get a Session_end sometimes directly when a page
loads... but only sometimes

/Lars

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
By default the Session_End event is called 20 minutes after that session's
last page request.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Lars Netzel" <ui****@adf.se> wrote in message
news:uL*************@TK2MSFTNGP14.phx.gbl...
In Global asax the Session_End Sub fires off every now and then. I only
want it to fire when I call Session.Abandon() but it fires off totally
randon when just suring around in my ASP.NET solution. Does anyone have
any ideas abotu this why it happens?

best regards/
Lars Netzel


Nov 19 '05 #5
Session_End will no execute in the context of a request -- it runs after
the timeout "on its own", so to speak. So you shouldn't be accessing things
like Request and Response in there (not that you are). I just wanted to mention
that it's not tied to a request, so your obversation is a coincidence.

-Brock
DevelopMentor
http://staff.develop.com/ballen
ok, that's cool but I get a Session_end sometimes directly when a page
loads... but only sometimes

/Lars

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:ez**************@tk2msftngp13.phx.gbl...
By default the Session_End event is called 20 minutes after that
session's last page request.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Lars Netzel" <ui****@adf.se> wrote in message
news:uL*************@TK2MSFTNGP14.phx.gbl...
In Global asax the Session_End Sub fires off every now and then. I
only want it to fire when I call Session.Abandon() but it fires off
totally randon when just suring around in my ASP.NET solution. Does
anyone have any ideas abotu this why it happens?

best regards/
Lars Netzel


Nov 19 '05 #6

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

Similar topics

1
by: raj | last post by:
Hi, I am facing a problem of automatic session timeout problem and automatic session_end event fired. Case1: As I have analyzed I get to know that the default session timeout is 20 in...
9
by: Kenn Ghannon | last post by:
I've got an ASP.NET page with a counter subtraction routine in the Session_End method in the Global.asax.cs: protected void Session_End(Object sender, EventArgs e) { ulong curUsers; ...
5
by: Steve M | last post by:
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...
2
by: Bela | last post by:
Hello I was wondering if someone could help me out with a Session_End problem in my Global.asax. I've tried everything, and still no success Here is the scenario: sessionstate is set to InProc....
3
by: Guadala Harry | last post by:
Just wondering if Session_End *always fires* for every Session. I know that IIS times out sessions after a default 20 min (unless changed) and there's no way to know when a user actually closed a...
4
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...
6
by: Beren | last post by:
Hey, I've got some code in my Session_End which cleans up all Session related items from the Cache object. I needed to store some related sessiondata in there to be able to address it in the...
5
by: Ron Vecchi | last post by:
1.) If I want to use an object that was stored in the Application state will it be avilable in the Session_End event. (even on the last session to end)?? 2.) Can I use the current sessions state in...
12
by: =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post by:
Hi. I am trying to maintain a list of people who are currently "online" in SQL. I do this by adding a simple entry to a simple PeopleOnline table whenever someone logs in to my site. If they...
8
by: vickyl | last post by:
Hi, I've been having this problem for the pas few days so i thought i'd post and see if anyone could help. I have an application that has code to delete file in Session_end. When i start a...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
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
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...

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.