Session End does not fire

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

I can't seem to get the session_end event to work?
I've tried to update databases in it and response.redirect to someplace
else.
Nothing works.
I load page and leave it for 60 minutes and I know that the session id
expired.
I used session.abandon and it didn't fire the session_end.

How can I test this? What is a good way to test if it's working?

Thanks
 
It only works if you use in-proc session state manager.
If you use state server or db state server, you're out of luck.

-Rob Teixeira [MVP]
 
How can I set things to use in-proc session state manager or is that
controlled by the hosting service of my website?

Thanks
 
Ok it was already set to in-proc management state.
what is a good test to see what I'm doing wrong?
the session_start works perfect. but the session_end doesn't seem to work?


Thanks
 
If you are already using the in-proc session managemer, there's only one
other thing i can think of. Session only gets established (if i remember
correctly) when you stuff something into session and a request is completely
fulfilled. If the user's visit to the site never puts any data into session
state, this user won't have an established session, and no session_end will
fire.

Try stuffing something into session on a page, and then call
Session.Abandon() to see if it fires.

-Rob Teixeira [MVP]
 
thanks very for your help
Did that also.
well if you can think of anything else drop me a note


thanks anyway
 
Back
Top