Unable to create a session cookie
Arjan-Zuidema opened this issue · comments
Arjan Zuidema commented
How do I make the cookie expire at the end of the session?
I tried multiple combinations of -1
, 0
, undefined
, null
with ttl
and expires
but nothing seems to work. The inspector always shows an expire date while it should say Session
in the expires column.
Arjan Zuidema commented
Divyansh Singh commented
Try cookieOptions: { maxAge: undefined }
Arjan Zuidema commented
Looks like that did the trick, thanks 👌🏼