How to handle the Session.End event outside of Global.asax

Officially, the HttpSession End Event is processed only in the Global.asax file, but I was wondering if it is there, although officially (for example, Reflection) not to handle the event in any other way.

+3
source share
2 answers

This is not something that can easily be done in an HttpModule, because the Session_OnEnd event can occur outside the scope of a system request. You should probably deal with this through a specialized session state provider, where your session control code fires the Session_OnEnd event.

+2
source

, , HTTPModule, pf hte ASPX, HTTP-.

http://www.15seconds.com/Issue/020417.htm

, .

0

Source: https://habr.com/ru/post/1706308/


All Articles