Exemple #1
0
 public SessionTool Session()
 {
     if (_Session == null)
     {
         _Session = new SessionTool(HttpContext.Session);
     }
     return(_Session);
 }
Exemple #2
0
        public void OnPageHandlerExecuting(PageHandlerExecutingContext context)
        {
            SessionTool st = new SessionTool(context.HttpContext.Session);

            if (st.GetLoginUser() == null)
            {
                context.Result = new RedirectResult("~/Acc/Login");
            }
        }