public void sessionDestroyed(HttpSessionEvent se) { bool setDomain = [email protected]() == null; if (setDomain) { AppDomain servletDomain = (AppDomain)se.getSession().getServletContext().getAttribute(J2EEConsts.APP_DOMAIN); if (servletDomain == null) { return; } [email protected](servletDomain); } try { HttpSessionStateContainer container = ServletSessionStateStoreProvider.CreateContainer(se.getSession()); SessionStateUtility.RaiseSessionEnd(container, this, EventArgs.Empty); } catch (Exception e) { Debug.WriteLine(e.Message); Debug.WriteLine(e.StackTrace); } finally { if (setDomain) { [email protected](); } } }
public void RemoveSessionID(HttpContext context) { ServletSessionStateStoreProvider.GetSession(context, false).invalidate(); }
public string CreateSessionID(HttpContext context) { return(ServletSessionStateStoreProvider.GetSession(context, true).getId()); }