MVC3 AntiForgeryToken Issue
问题 I am trying to implement AntiForgeryToken for my MVC3 Application. I am having a problem with AntiForgeryToken after setting FormAuthentication cookie. Here is a simple example which explains my problem. I have home controller with following action methods: public class HomeController : Controller { public ActionResult Logon() { return View(); } [HttpPost] [ValidateAntiForgeryToken] public ActionResult Logon(string userName, string password) { FormsAuthentication.SetAuthCookie(userName, false