-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation component] Possible RedisSessionHandler and Session maxlifetime differents #34659
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
Comments
I'm not sure I get the solution reading the code :) |
Check this commit: symfony/http-foundation@a558b18#diff-e0b7ebc2540719ba74c5348a1f691f10 If we set do you understand what I try to mean? |
Up for a PR? |
To be honest, I don't understand why the time for session expire and redis session storage expire have to be different. For me the best PR possible is revert this commit. Don't have sense on sessions if redis record expire is less than sess 718F ion maxlifetime, because if redis record expire, then session will be destroy (before session maxlifetime). |
Uh oh!
There was an error while loading. Please reload this page.
Symfony version(s) affected: 4.4.0
Description
Option
gc_maxlifetime
doesn't work well, because RedisSessionHandler use a different variable for this purpose.session.gc_maxlifetime
will set onsetOptions
method ofSession/Storage/NativeSessionStorage
called on___construct
method, butSession/Storage/Handler/RedisSessionHandler
setttl
property on his__construct
, called beforeNativeSessionStorage::__construct
.How to reproduce
Possible Solution
The text was updated successfully, but these errors were encountered: