fix: add cookie expire time
This commit is contained in:
parent
503f5792fb
commit
2c09122971
@ -22,7 +22,7 @@ internal class RequestContextInfo
|
||||
if (string.IsNullOrEmpty(fingerprint))
|
||||
{
|
||||
fingerprint = Guid.NewGuid().ToString().Replace("-", "") + GeneratorKey.GenerateString(32);
|
||||
cookieOptions.SetCookie(context, CookieNames.FingerprintToken, fingerprint);
|
||||
cookieOptions.SetCookie(context, CookieNames.FingerprintToken, fingerprint, DateTimeOffset.UtcNow.AddYears(10));
|
||||
}
|
||||
|
||||
UserAgent = userAgent;
|
||||
|
Loading…
x
Reference in New Issue
Block a user