Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create a session cookie #712

Closed
Arjan-Zuidema opened this issue Feb 20, 2024 · 3 comments
Closed

Unable to create a session cookie #712

Arjan-Zuidema opened this issue Feb 20, 2024 · 3 comments

Comments

@Arjan-Zuidema
Copy link

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
Copy link
Author

@vvo @brc-dd anyone? Cannot seem to find any docs about this.

@brc-dd
Copy link
Collaborator

brc-dd commented Mar 30, 2024

Try cookieOptions: { maxAge: undefined }

@Arjan-Zuidema
Copy link
Author

Looks like that did the trick, thanks 👌🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants