Пример #1
0
    private void Application_PostRequestHandlerExecute(object sender, EventArgs e)
    {
        HttpApplication app = sender as HttpApplication;

        if (app.Context.Session != null && app.Context.Session.SessionID != null)
        {
            SessionId sessionId = new SessionId(app.Context.Session.SessionID);
            UserContext.CleanupThreadContext(sessionId);
        }
    }