Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Have you tried increasing the SecurityStampValidation interval e.g:
services.Configure<SecurityStampValidatorOptions>(o => o.ValidationInterval = TimeSpan.FromHours(10));
We are working on an upgrade from CMS 11 to CMS 12.
Application identity cookie is expiring within 20-30mins; we are unable to increase expiry time.
Below is the setup we have done in application startup middleware.
services.AddCmsAspNetIdentity<ApplicationUser>(o =>
{
o.ConnectionStringOptions = new ConnectionStringOptions
{
Name = "EPiServerDB",
ConnectionString = connectionString
};
});
we are increasing the cookie time as shown below, cookie expire time is applying only if we pass IsPersistent as true in AuthenticationProperties in SignInAsync method, actually we set IsPersistent as true based on login remember me.
services.ConfigureApplicationCookie(options =>
{
options.Cookie.HttpOnly = true;
options.LoginPath = "/";
options.SlidingExpiration = true;
options.ExpireTimeSpan = TimeSpan.FromDays(1);
});
Can you please review and provide your thoughts if I am missing something?