MVC中 关于退出按钮的写法

public ActionResult Logoff()

{

         Session.Abandon();

         Session.Clear();

         FormsAuthentication.SignOut();

         return ReditectToAction("LonOn","Account");

}

posted @ 2013-11-25 20:45  酒沉吟  阅读(426)  评论(0编辑  收藏  举报