-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
question: Keeping users logged in longer? #24
Comments
@poperigby , please create a gist of your Caddyfile and share it here. The “cookie lifetime” is the max lifetime of a cookie in a browser cache. It should be send to something like 8 hours. The “crypto key lifetime” is the lifetime of the JWT token inside the cookie. That is set to 15 minutes by default. You probably want to keep the “crypto key lifetime” as is, but set cookie lifetime to days. When the token expires, the cookie carrying it is still “alive” and serves as a clue for a redirection. |
The thing is, even when I set it to 24 hours, it definitely wasn't lasting that long. |
@poperigby , set the following. That would keep session up for an hour, while keeping your cookie alive for 2 hours.
Want to keep it alive for a day?
|
Thanks. |
I'm a bit confused on how to keep users logged in for longer. I set my
cookie lifetime
to 1440, and it definitely wasn't lasting that long. I would just get booted from my services and have to login again every once in a while.The text was updated successfully, but these errors were encountered: