ASP.NET Core 3.1 / Identity session never expires. How can I get it to expire on sliding expiration?
问题 A security check of my website showed that sessions (i.e. login) never expire. I've tested myself and I find the same - I opened up the site on localhost this morning and I'm still signed in from yesterday. I always assumed it would expire after 20 minutes like it would in .NET Framework apps. I'm using the ASP.NET Core Identity scaffolding with minimal changes other than implementing two factor authentication. In my Startup.cs I have the following code to add session support: services