Absolute session timeout #46826
Unanswered
joelharkes
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel has a session
lifetime
. env key:SESSION_LIFETIME
.But most frameworks provide 2 different timeouts:
See also: https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Session_Management_Cheat_Sheet.md
Laravel does not know this absolute timeout.
Problem
If a session is hijacked a hacker can keep open the session forever, by sending a request to the server within the session lifetime window.
This is why it is best practise to also always setup an absolute timeout.
What would Laravel need?
storing an additional field: created_at of the session.
add the additional config variable to also setup.
then the logic:
Question?
Do you think Laravel should implement this?
Beta Was this translation helpful? Give feedback.
All reactions