Expired session leads to 'ERR invalid expire time in set'
baumgarb opened this issue · comments
Baumi commented
If for whatever reason a session has a cookie with an expires
in the past then a call to set
results in a negative TTL that's calculated which in turn leads to Redis throwing an error ERR invalid expire time in set
.
Suggestion: the set
method could check for the TTL it calculates and if it results in a negative TTL it could immediately delete / destroy the key.