chhotii: (diploma)
[personal profile] chhotii
From 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.

Profile

chhotii: (Default)
chhotii

July 2023

S M T W T F S
      1
2345678
9101112131415
16 171819202122
23 242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 27th, 2026 06:09 pm
Powered by Dreamwidth Studios