Skip to content

Commit

Permalink
wip: use sliding cookie expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Nov 18, 2022
1 parent 8134dc6 commit debb7a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GZCTF/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@
options.ApplicationCookie?.Configure(cookie =>
{
cookie.Cookie.Name = "GZCTF_Token";
cookie.SlidingExpiration = true;
cookie.ExpireTimeSpan = TimeSpan.FromDays(7);
});
});

Expand Down

0 comments on commit debb7a8

Please sign in to comment.