Closed
Description
Symfony version(s) affected: master
Description
I was just reading the code of the PdoSessionHandler
, when I encountered something that looks like a bad merge:
Just wanted somebody to confirm that. As bindValue
just overwrites the previously set value, it seems that all sessions in SQLServer are immediately invalidated, as the last value bound to the expiry fields is just time()
.
How to reproduce
I don't run SQLServer, so I have no easy way to confirm this. Just wanted to confirm that I am not misreading the code.
I can try to then add a failing test case.
Possible Solution
Remove duplicate lines and only leave the ones with + $maxlifetime
.
Additional context
—