title: how to handle unauthorized ajax requests?
body: <p>I have a requirement like page posting using a ajax call.</p>
  
  <ol>
  <li>I have a user id column which is coming from session.</li>
  <li>If the user is idle for a long time the session will get expired.</li>
  </ol>
  
  <p>Therefore, I am not getting the required parameters to the ajax call.</p>
  
  <p>How to handle this situation? </p>