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

feat: set cookies' expires attribute and fix remember me #530

Merged
merged 1 commit into from
Aug 10, 2023

Conversation

gucheen
Copy link
Contributor

@gucheen gucheen commented Aug 3, 2023

Since modern browsers set cookies' expires to 'session' by default (clear these cookies after user close browser), remember me will not work currently.

This PR adds some logic to create cookies with an expiration time from response. Now these cookies will have correct expiration time (will not be deleted after closing browser) .

Remember Me will work correctly after this fixing.

And maybe we don't need to validate cookies' expiration times in frontend (cookies will be deleted by browser after they expire).

@hay-kot
Copy link
Owner

hay-kot commented Aug 10, 2023

can't believe I missed this, thank you!

@hay-kot hay-kot merged commit b5987f2 into hay-kot:main Aug 10, 2023
3 checks passed
hay-kot pushed a commit that referenced this pull request Jan 28, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants