title: ASP.NET Core MVC: setting expiration of identity cookie
body: <p>In my ASP.NET Core MVC app the lifetime of the authentication cookie is set to 'Session', so it lasts until I close the browser.
  I use the default authentication scheme for MVC:</p>
  
  <pre><code>app.UseIdentity();
  </code></pre>
  
  <p>How can I extend the lifetime of the cookie?</p>