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

user:pass cookie sessions dont expire when manually manipulating the cookie expiry #81

Open
Memexurer opened this issue Aug 30, 2023 · 1 comment

Comments

@Memexurer
Copy link

https://www.reddit.com/r/golang/comments/yk59kp/gorilla_sessions_dont_expire_after_maxage/
^^^^

@Luzifer Luzifer changed the title user:pass cookie sessions dont expire user:pass cookie sessions dont expire when manually manipulating the cookie expiry Aug 30, 2023
@Luzifer
Copy link
Owner

Luzifer commented Aug 30, 2023

Keeping this "as a reminder" for a future planned rewrite.

Next time please formulate a proper ticket explaining your issue. For this issue read the first comment of your Reddit thread, it explains how cookies work.

Aside: The cookie gets overwritten on every request properly using the set-cookie headers from nginx-sso, so it will restore the expiry. Also every request will prolong the life-time of the cookie.

@Luzifer Luzifer added this to the Version 1.x - Rewrite milestone Feb 6, 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

No branches or pull requests

2 participants