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

Updating the session cookie #256

Open
patrick-hofmann opened this issue Oct 23, 2024 · 0 comments
Open

Updating the session cookie #256

patrick-hofmann opened this issue Oct 23, 2024 · 0 comments

Comments

@patrick-hofmann
Copy link

patrick-hofmann commented Oct 23, 2024

The session cookie is not updated automatically if the data within the session is not updated.

Repro:
in playground nuxt.config.js set runtimeConfig session to:

runtimeConfig: {
session: {
maxAge: 60,
cookie: {
maxAge: 10,
},
},
},

then login using password. Refresh the page serveral times within 10 seconds, after 10 seconds -> the session is gone (because the cookie is not set in the server response).

PR #255 solves this issue

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

1 participant