title: How to handle session timeout in MVC3 in javascript?
body: <p>In my application this is how we are dealing with the session timeout till now</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
      &lt;forms loginUrl="~/Account/LogOn" timeout="20" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>Now I want to deal session time out on client side, something like this</p>
  
  <pre><code>&lt;authentication mode="Forms"&gt;
     &lt;forms loginUrl="showPopup();" timeout="20" /&gt;
  &lt;/authentication&gt;
  </code></pre>
  
  <p>Is that possible, or any other suggested way to achieve this?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I visited to other questions of the same type but could not get any real help from them.</p>