Why Session_End event not raised when StateProvider is not InProc?
asp.net, session
Solution
because the ASP.NET Session State it's not in memory anymore...
when using a different process to store the Session State, the IIS does not know (because it is not coupled, the session state is not held by the IIS anymore) when the session ends...
this is specially because the timeouts, I never tried, but does that event fires when you programaticaly call Session.Abandon() ??
Problem
I'm asking this question out of curiosity. I noticed this in my global.asax ``` void Session_End(object sender, EventArgs e) { // Code that runs when a session ends. // Note: The Session_End event is raised only when the sessionstate mode // is set to InProc in the Web.config file. If session mode is set to StateServer // or SQLServer, the event is not raised. } ``` I want to understand why Session_End event is not captured/raised when the session mode is StateServer or SQLServer ?