FineUI 官方论坛

标题: 退出 [打印本页]

作者: xiaowengang    时间: 2017-5-19 10:08
标题: 退出
在论坛里面下了个源码项目,里面有个退出但是没有实现;我想问下,这个退出功能如何实现,比如我在菜单里面有一个节点是退出,我想点击时退出整个项目或者退出到登录页面,这个如何实现

作者: KK.Leung    时间: 2017-5-19 12:02
FormsAuthentication.SignOut();下午再说一下详细的,现在下班了~哈哈

作者: xiaowengang    时间: 2017-5-19 13:43
下面这些我都已经试过了,不行,包括屏蔽了的
        [HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Exit()
        {
            //Alert.Show("已经进入");
            FormsAuthentication.SignOut();            
            ////return RedirectToAction("Index", "Login");
            ////UIHelper.Window("Window1").Hide();
            ////return UIHelper.Result();

            //Session.RemoveAll();

            //Session.Clear();

            //Response.Write("<script>window.Close();</script>");
            //Response.Redirect("/Login/Index");
            return View();
        }
作者: KK.Leung    时间: 2017-5-19 14:23
xiaowengang 发表于 2017-5-19 13:43
下面这些我都已经试过了,不行,包括屏蔽了的
        [HttpPost]
        [ValidateAntiForgeryToken]

你参考一下官方的实例
【快速入门_EF_CodeFirst】FineUIMvc.QuickStart_v1.1.0




欢迎光临 FineUI 官方论坛 (https://www.fineui.com/bbs/) Powered by Discuz! X3.4