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));
        }
Exemple #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));
        }