Relative Content

Tag Archive for javascriptnode.jsexpresscookies

Express Cookie Sent With Header and Saved in Storage but After Reload they are gone

I’ve searched almost every topic about this issue but still could not fixed the problem. Set-Cookie is avaliable in response headers, see below, with a little warning. I am using http therefore i have to set secure to false. I even tried “SameSite=lax|strict” but still could not solve the problem. Also the cookies is presence in the application tab but when I change my url or refresh it the cookies are removed.

Web cookies wrong maxAge

Im trying to set maxAge for my JWT cookie, i’ve configured 20 minutes to it, which is 1198 seconds.
The variable maxAgeInSeconds is correct, but then the browser sets a wrong time (i think its due to the timezone offset)