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.
source
share