I have a mvc web application that requests as a homepage to verify your identification and if it is correct send to the main page, the action is correctly fulfilled using authentication Forms and redirects to this if you try to go directly via url to another address, but when you return to the login page via url when you are already identified, it returns to display the login forms. Try the following, but request the user's manual action via link.
@if (Request.IsAuthenticated)
{
@Html.ActionLink("Salir", "Index", "Home")
}
- Is it advisable to redirect from one view to another directly or is the use of a controller essential to avoid abnormalities?