1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-26 12:55:17 +01:00

fix admin cookie expiration

This commit is contained in:
Kyle Spearrin 2020-01-13 12:03:10 -05:00
parent 6efb7fcbfd
commit 13370e011f

View File

@ -293,7 +293,7 @@ namespace Bit.Core.Utilities
options.AccessDeniedPath = "/login?accessDenied=true";
options.Cookie.Name = $"Bitwarden_{globalSettings.ProjectName}";
options.Cookie.HttpOnly = true;
options.Cookie.Expiration = options.ExpireTimeSpan = TimeSpan.FromDays(2);
options.ExpireTimeSpan = TimeSpan.FromDays(2);
options.ReturnUrlParameter = "returnUrl";
options.SlidingExpiration = true;
});