handle session epire cookies, force int expire

This commit is contained in:
simon 2022-06-25 20:36:41 +07:00
parent 68fae9d6d4
commit a3bbc863c9
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -164,7 +164,7 @@ function buildCookieLine(cookie) {
"TRUE", "TRUE",
cookie.path, cookie.path,
cookie.httpOnly.toString().toUpperCase(), cookie.httpOnly.toString().toUpperCase(),
cookie.expirationDate, Math.trunc(cookie.expirationDate) || 0,
cookie.name, cookie.name,
cookie.value, cookie.value,
].join("\t"); ].join("\t");