문제

I'm using MVC3 with form authentication. Everything work fine except one thing. I want to redirect authenticated user to another page when he/she tries to access LogOn page again. So how can I achieve this?

도움이 되었습니까?

해결책

In your LogOn Action do something like this.

if (HttpContext.Request.IsAuthenticated)
{
   return RedirectToAction("Action", "Controller");
}

return View();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top