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

Set user device cookie maxAge to 1 year #537

Merged
merged 2 commits into from
Sep 1, 2024
Merged

Conversation

sinamics
Copy link
Owner

@sinamics sinamics commented Sep 1, 2024

User device maxAge was previously set to session, as i belived this was the same as never, but session will terminate when browser is closed.

Updated device cookie to have maxAge of 1 year.
image

Cookie expire date is not dynamically updated, so the user device will be invalidated in 1 year. This could be improved by udpate the cookie when user interact with ztnet.

Related #526

@github-actions github-actions bot added the ztnet Main Application label Sep 1, 2024
@sinamics sinamics merged commit b4b2a74 into main Sep 1, 2024
3 checks passed
@sinamics sinamics deleted the cookie-expire-date branch September 1, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ztnet Main Application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant