more things to cheese me off
Aug. 15th, 2020 02:10 pmFrom https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie : The Max-Age attribute of the Set-Cookie header specified the number of seconds until the cookie expires.
Guess what unit of time the expressjs module uses for the maxAge property? From http://expressjs.com/en/resources/middleware/cookie-session.html :
Milliseconds!
So, my cookies were expiring 1000x faster than I expected they would. That explains a lot.
Seriously, I have exceeded the Max-Age for putting up with such bullshit.
Guess what unit of time the expressjs module uses for the maxAge property? From http://expressjs.com/en/resources/middleware/cookie-session.html :
Milliseconds!
So, my cookies were expiring 1000x faster than I expected they would. That explains a lot.
Seriously, I have exceeded the Max-Age for putting up with such bullshit.