我正在使用MVC3进行表单身份验证.除了一件事,一切都很好.我想在他/她再次尝试访问LogOn页面时将经过身份验证的用户重定向到另一个页面.那我该怎么做呢? 在你的LogOn Action中做这样的
if (HttpContext.Request.IsAuthenticated) { return RedirectToAction("Action", "Controller"); } return View();
if (HttpContext.Request.IsAuthenticated) { return RedirectToAction("Action", "Controller"); } return View();