title: How to easily redirect if not authenticated in MVC 3?
body: <p>I am brand new to ASP.NET, and I'm trying to find a way to easily redirect an unauthenticated user from any page on the site to the logon page. I would prefer to not put the following code in every HTTP GET function if there is another option.</p>
  
  <pre><code>if (!Request.IsAuthenticated)
  {
       return RedirectToAction("LogOn", "Account");
  }
  </code></pre>