Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有表单身份验证的 MVC3。除了一件事,一切都很好。当他/她再次尝试访问登录页面时,我想将经过身份验证的用户重定向到另一个页面。那么我该如何实现呢?
在您的登录操作中执行类似的操作。
if (HttpContext.Request.IsAuthenticated) { return RedirectToAction("Action", "Controller"); } return View();