title: MVC 4 Redirect from login page if authenticated
body: <p>By using a default MVC 4 web application how can I redirect the user to certain page if he is logged in? What I mean when you try to access a page that is decorated with <code>[Authorize]</code> attribute, it will redirect you to login page and the parameter in the url is the page you tried to access. If login succeeded, you will be redirected to that specific page. Now you are authenticated and you can access that specific page. But if you go back to the login page <code>http://page:port/Account/Login</code> it will still display the login page. How can I redirect the user from login page if he/she is already loged in? </p>
  
  <p>Should I use this in the controller <code>GET Login action</code> from Account Controller?</p>
  
  <pre><code>if(Request.IsAuthenticated)
  {
      ...redirect to ...
  }
  </code></pre>