Closed hero101 closed 2 years ago
Thank you for the report, this indeed needs to be fixed!
We should probably add a check here
which verifies if the expiry time has changed. Ffor this we could add the original expiry time to the session cookie's values by adding something like session.Values["session_exp"] = session.ExpiresAt
If it has, we re-issue the session cookie.
Preflight checklist
Describe the bug
We have started using the session extend API to extend user sessions after requests to our backend server. The session is correctly extended, but the web client is logged out after the session cookie has expired because its expiry date has been set at the time of the login and is not refreshed anymore.
Reproducing the bug
sessions/whoami
Expected behavior: The client cookie is refreshed so the browser is not being logged out
Relevant log output
No response
Relevant configuration
No response
Version
0.10.1
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Kubernetes
Additional Context
No response