ABP Commercial 7.2.1 / Blazor Server / EF / Non tiered / Separate Host and Tenant DBs / Lepton Theme
Hi, We are trying to change the user's session cookie expiration from "session" to a limited time frame.
We added the following in our BlazorModule.cs implementation of the ConfigureServices() method, but the cookie always still has an expiration of "Session" when we view the cookie in the browser tools. What might we be missing?
Thanks in advance...
context.Services.ConfigureApplicationCookie(ops =>
{
ops.Cookie.Name = "AspNetCore.Identity.Application";
ops.ExpireTimeSpan = TimeSpan.FromMinutes(1);
ops.SlidingExpiration = true;
});
4 Answer(s)
-
0
hi
I guess this will work when you click the Remember me
-
0
Hi mailiming,
When Remember me is clicked the cookie expiration does take effect. This seems somewhat counterintuitive. Isn't the Remember me setting defined in a separate cookie?
Any guidance or information is appreciated.
Thanks
-
0
hi
This is asp net core identity's design.
-
0
Thanks, looks like you are correct. Thanks for confirming.