title: How to detect a redirect to login when using AJAX with ASP.NET MVC 2
body: <p>Is there a way of detecting when an AJAX request (using jQuery) to an ASP.NET MVC application redirects me to the login page?</p>
  
  <p>I'm getting partial views rendered using an ajax call, but when the user has been signed out (for whatever reason), instead of returning a 302 or some other indication (that I can see) I get the login form returned to me...</p>
  
  <p>Thanks,</p>
  
  <p>Kieron</p>