コード例 #1
0
        public ActionResult Logout(string returnUrl)
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.UsersController();
            var url        = controller.Logout(context: context, returnUrl: returnUrl);

            return(Redirect(url));
        }
コード例 #2
0
        public ActionResult Logout(string returnUrl)
        {
            var context    = new ContextImplement();
            var controller = new Implem.Pleasanter.Controllers.UsersController();
            var url        = controller.Logout(context: context, returnUrl: returnUrl);

            this.HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme).Wait();
            this.HttpContext.Session.Clear();
            return(Redirect(url));
        }