title: How can I handle forms authentication timeout exceptions in ASP.NET?
body: <p>If the session has expired and the user clicks on a link to another webform, the asp.net authentication automatically redirect the user to the login page.</p>
  
  <p>However, there are cases when the user does not click on links to other webforms. For example: edit link in gridviews, when using AutoCompleteExtender with textboxes and the application attempts to get the information, and basically, in every case when a postback is done and the event is not automatically handled by the asp.net authentication.</p>
  
  <p>What is the best way to handle these exceptions?</p>
  
  <p><strong>UPDATE:</strong> I have just modified the question title: forms authentication timeout, instead of the initial session timeout. Thanks for making me aware of this difference.</p>
  
  <p><strong>UPDATE:</strong> I have just created a new question with the specific problem I am facing: <a href="https://stackoverflow.com/questions/7597854/due-to-expired-authentication-ticket-i-am-getting-error-sys-webforms-pagerequest">How to handle exception due to expired authentication ticket using UpdatePanel?</a>. Surprisingly, I have not found much information about it. I would really appreciate your help.</p>