Session_End problem

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

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
 
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...
 
By default the Session_End event is called 20 minutes after that session's
last page request.
 
ok, that's cool but I get a Session_end sometimes directly when a page
loads... but only sometimes

/Lars
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top