public SessionTool Session() { if (_Session == null) { _Session = new SessionTool(HttpContext.Session); } return(_Session); }
public void OnPageHandlerExecuting(PageHandlerExecutingContext context) { SessionTool st = new SessionTool(context.HttpContext.Session); if (st.GetLoginUser() == null) { context.Result = new RedirectResult("~/Acc/Login"); } }