London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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?