title: Add session timeout from controller in ASP.NET Core MVC
body: <p>How to add session timeout from a controller in ASP.NET Core MVC? </p>
  
  <p>I am working on an ASP.NET Core MVC web application, and I need to add the session timeout from my controller's action method.</p>