How to set cookie ValidationInterval in ASP.NET Core
By FoxLearn 2/18/2024 9:43:21 AM 49
This post shows you How to set cookie ValidationInterval in ASP.NET Core.
Opening your Startup class, then add a configuration as shown below.
services.Configure<SecurityStampValidatorOptions>(options => { options.ValidationInterval = TimeSpan.FromDays(1); });
You should add an AddIdentity first and ConfigureApplicationCookie after.
- ASP.NET Core: How to Create RDLC Report in ASP.NET Core
- How to fix Assets file 'project.assets.json' not found
- How to fix 'IMvcBuilder' does not contain a definition for 'AddNewtonsoftJson'
- How to fix 'DbContextOptionsBuilder' does not contain a definition for 'UseSqlServer'
- How to fix LoginPath not working in ASP.NET Core
- How to fix Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager'
- How to Configure ASP.NET Core Identity password policy
- How to fix System.InvalidOperationException: Scheme already exists: Identity.Application
Categories
Popular Posts
Visual Studio: Auto increment version
04/01/2024
What is ARM architecture?
04/01/2024
What Are RESTful Web Services?
02/19/2024