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
[project-base] Automatically delete sessions after 7 days of user inactivity #1842
Conversation
We should delete sessions after 30 days because of remember me option. See
|
@henzigo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok sorry, my comment doesn't make any sense.
This should work (including remember me feature) |
@s3tezsky why 👎 ? It is realy problem for production eshops, because it creates records in redis to forever (and it requires RAM). Please explaint it to me. |
Hello, could you merge this PR? Sessions in Redis may increase more than 10GB of RAM after some time in running production because of this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @stanoMilan,
thank you for your PR. We have discussed this and it is nice change. Only think I want you change is TTL to one week, as 24 hours login for users might be not enough.
6b54709
to
ab1fb6b
Compare
@TomasLudvik for the old session does not set the TTL to 604800 but this sessions remains set to -1(for all time ). |
ab1fb6b
to
3b01d43
Compare
Just wanted to bring more attention here. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Delete a session after 24 hours of user inactivity, because the session stays on the server forever and takes up memory space.