increasing cookie expiry to a month
This commit is contained in:
parent
bfcf07a3f4
commit
1ac02d14a8
@ -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();
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user