Beispiel #1
0
        internal void OnSessionRemoved(string key, object value, CacheItemRemovedReason reason)
        {
            SessionConfig cfg = GetConfig();

            // Only invoked for InProc (see msdn2 docs on SessionStateModule.End)
            if (cfg.Mode == SessionStateMode.InProc)
            {
                HttpApplicationFactory.InvokeSessionEnd(value);
            }
        }
        public static void RaiseSessionEnd(IHttpSessionState session, Object eventSource, EventArgs eventArgs)
        {
            HttpSessionState state = new HttpSessionState(session);

            HttpApplicationFactory.InvokeSessionEnd(state, eventSource, eventArgs);
        }