fix: add cookie expire time

This commit is contained in:
Polianin Nikita 2024-11-04 03:15:13 +03:00
parent 503f5792fb
commit 2c09122971

View File

@ -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;