I've tried about all I can think of - can you actually control the session timeout of an Administrative User in the SaaS-based CMS? I've set this code, but to no avail:
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromMinutes(configuration.GetValue<int>("SessionTimeoutInMinutes"));
options.Cookie.HttpOnly = true;
options.Cookie.IsEssential = true;
});
...there is also an app.UseSession() in the code as well. The SessionTimeoutInMinutes
value comes from appsettings, and is set to 120. Regardless of all of the above, the SaaS-based site is still timing out Users at the default 20-minute interval.
I also have tried to set the Application Cookie timeout as well:
services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromMinutes(configuration.GetValue<int>("SessionTimeoutInMinutes")); // Set authentication cookie expiration to 2 hours
options.SlidingExpiration = true;
});
This doesn't seem to work, either.
Oh, and this is running on v30.2.2.
Any thoughts?