コード例 #1
0
        public void LogOutUser(AuthorizationContext filterContext)
        {
            IFormsAuthenticationService formsService = new FormsAuthenticationService();

            formsService.SignOut();
            NotAuthorized(filterContext);
        }
コード例 #2
0
 public void LogOutUser(AuthorizationContext filterContext)
 {
   IFormsAuthenticationService formsService = new FormsAuthenticationService();
   formsService.SignOut();
   AddNoOutputCacheHeaders(filterContext);
   filterContext.Result = new HttpUnauthorizedResult();
 }
コード例 #3
0
        public void LogOutUser(AuthorizationContext filterContext)
        {
            IFormsAuthenticationService formsService = new FormsAuthenticationService();

            formsService.SignOut();
            AddNoOutputCacheHeaders(filterContext);
            filterContext.Result = new HttpUnauthorizedResult();
        }
コード例 #4
0
 private void LogOutUser(AuthorizationContext filterContext)
 {
   IFormsAuthenticationService formsService = new FormsAuthenticationService();
   formsService.SignOut();
   NotAuthorized(filterContext);
 }