title: Azure AD timeout after 20-30 mins idle - how to avoid it?
body: <p>I have an ASP.NET MVC5-application, using Azure AD to let Office365 users from different organizations authenticate. </p>
  
  <p>However, if the web application is idle for about 20 minutes, the user is redirected to the login page at the next click/reload. Problem is that the user won't notice this right away, because they are not redirected due to updates on the page are async JS-based...which is then not saved to the database. But when the page is refreshed, they are then redirected to the login.</p>
  
  <p>How do I avoid that login timeout after idle for 20 minutes? I don't really want them to be logged out at all.</p>
  
  <p>Thanks!</p>