mirror of
https://github.com/bitwarden/server
synced 2025-12-11 05:43:35 +00:00
fix admin cookie expiration
This commit is contained in:
@@ -293,7 +293,7 @@ namespace Bit.Core.Utilities
|
|||||||
options.AccessDeniedPath = "/login?accessDenied=true";
|
options.AccessDeniedPath = "/login?accessDenied=true";
|
||||||
options.Cookie.Name = $"Bitwarden_{globalSettings.ProjectName}";
|
options.Cookie.Name = $"Bitwarden_{globalSettings.ProjectName}";
|
||||||
options.Cookie.HttpOnly = true;
|
options.Cookie.HttpOnly = true;
|
||||||
options.Cookie.Expiration = options.ExpireTimeSpan = TimeSpan.FromDays(2);
|
options.ExpireTimeSpan = TimeSpan.FromDays(2);
|
||||||
options.ReturnUrlParameter = "returnUrl";
|
options.ReturnUrlParameter = "returnUrl";
|
||||||
options.SlidingExpiration = true;
|
options.SlidingExpiration = true;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user