increasing cookie expiry to a month

This commit is contained in:
andy 2022-09-29 20:37:06 +01:00
parent bfcf07a3f4
commit 1ac02d14a8
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ namespace Selector.Web
public string LastfmClient { get; set; }
public string LastfmSecret { get; set; }
public TimeSpan CookieExpiry { get; set; } = TimeSpan.FromDays(30);
public RedisOptions RedisOptions { get; set; } = new();
public NowPlayingOptions NowOptions { get; set; } = new();

View File

@ -97,7 +97,7 @@ namespace Selector.Web
{
// Cookie settings
options.Cookie.HttpOnly = true;
options.ExpireTimeSpan = TimeSpan.FromDays(1);
options.ExpireTimeSpan = config.CookieExpiry;
options.LoginPath = "/Identity/Account/Login";
options.AccessDeniedPath = "/Identity/Account/AccessDenied";