increase cookie timeout to 3 days
This commit is contained in:
parent
c34dc876c0
commit
c8f3c5225d
@ -12,7 +12,8 @@ builder.Services.AddSingleton<INoteService, FileNoteService>();
|
||||
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie(o =>
|
||||
{
|
||||
o.LoginPath = "/login";
|
||||
o.Cookie.MaxAge = TimeSpan.FromHours(12);
|
||||
o.Cookie.Name = "NotesUser";
|
||||
o.Cookie.MaxAge = TimeSpan.FromDays(3);
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
Loading…
x
Reference in New Issue
Block a user