title: How to proceed with authentication on ajax requests in asp.net mvc + Forms authentication
body: <p>i am new to MVC4. i am using ASP.net forms authentication. in all page loads i am able to handle authentication and authorization.</p>
  
  <p>i am using Ajax requests in case of Partial views and to return a object.</p>
  
  <p>in case of partial views i am able to find manage by checking Ajaxrequest by following <a href="https://stackoverflow.com/questions/4764528/net-c-how-to-handle-forms-authentication-expiration-during-an-ajax-call">this</a>  </p>
  
  <p>in case of object return how to handle authentication for all ajax requests?</p>
  
  <p>My end goal is to intimate that your session time out or at least to redirect to login page</p>