Reputation: 5515
I have an asp.net application that utilizes long polling. So, a typical call to the aspx page can take 30 seconds or more.
I've noticed, sometimes in wait-state the session recycles (for known reasons) and the Session[] object is wiped. At this point, I would like to be able to cut the wait short and signal the aspx page to complete and let the browser attempt to reconnect and set up a new valid session.
is there a "Session Got Recycled" event I can listen to?
thanks!
Upvotes: 1
Views: 78
Reputation: 21127
Session_End
in the global.asax
:
protected void Session_End(Object sender, EventArgs E) {
// Clean up session resources
}
Upvotes: 3