1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

persist login. allow log out

This commit is contained in:
Kyle Spearrin
2018-03-23 10:12:09 -04:00
parent 1b313e6df4
commit 0d12cf9217
5 changed files with 23 additions and 5 deletions

View File

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