+2006-03-29 Konstantin Triger <kostat@mainsoft.com>\r
+\r
+ * SessionListener.cs: Use standard mechanism for session_end handling.\r
+\r
2006-03-20 Konstantin Triger <kostat@mainsoft.com>\r
\r
* SessionListener.cs: Associate the AppDoamin with current thread.\r
vmw.@internal.EnvironmentUtils.setAppDomain(servletDomain);
try
{
- bool getHttpApplication = false;
- object app = ((HttpSessionState)o).App;
- if (app == null)
- {
- app = HttpApplicationFactory.GetApplication(null);
- if (app == null)
- return;
- getHttpApplication = true;
- }
- if (method == null && firstTime)
- {
- firstTime = false;
- Type appType = app.GetType();
- method = appType.GetMethod("Session_End",BindingFlags.Instance|BindingFlags.NonPublic|BindingFlags.Public);
- if (method == null)
- return;
- }
- else if (method == null)
- return;
- method.Invoke(app, new object[]{app,EventArgs.Empty});
- if (getHttpApplication)
- HttpApplicationFactory.Recycle((HttpApplication)app);
+ HttpApplicationFactory.InvokeSessionEnd(o);
}
#if DEBUG
catch (Exception e)