authentik icon indicating copy to clipboard operation
authentik copied to clipboard

Session Duration

Open eglia opened this issue 4 years ago • 7 comments

Describe your question In my login stage, I set a very long session duration (hours=87601, i.e. 10 years), which I can see in the cookie in the browser. However, I am sometimes logged out much sooner than that. I haven't really noticed a pattern yet, but I think it's usually in the magnitude of a few weeks. So my question is whether there are any other conditions for when a session is terminated, besides the cookie lifetime.

Relevant infos

Screenshots

Logs

Version and Deployment (please complete the following information):

  • authentik version: 2021.12.01-rc1
  • Deployment: docker-compose

Additional context

eglia avatar Dec 03 '21 11:12 eglia

There shouldn't be anything else on the authentik side; the only thing I could think of would be changing the secret_key would invalidate all sessions; and of course browsers or extensions might be cleaning cookies.

I have however also noticed this happening, seemingly at random aswell.

BeryJu avatar Dec 05 '21 14:12 BeryJu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 03 '22 14:02 stale[bot]

I am still sometimes logged out without obvious cause...

eglia avatar Feb 03 '22 15:02 eglia

Same, but only happens on safari and randomly for me

BeryJu avatar Feb 03 '22 17:02 BeryJu

Same, but only happens on safari and randomly for me

Same issue on Safari Mobile

guyguy333 avatar Mar 16 '22 20:03 guyguy333

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 15 '22 21:05 stale[bot]

the above commit fixes the issue but it still happens on safari for me

BeryJu avatar May 15 '22 21:05 BeryJu