Subject: | Store expiry TS to make cleaning stale sessions easier. |
Hi,
Could you pass C<< atime >> and C<< defined(etime) ? atime+etime : undef >> as extra arguments to C<< $driver->store >>, and modify C<< $driver->store >> to store those values?
Then, we could do something like the following to clean up stale sessions rather than loading each one individually:
DELETE FROM `Session` WHERE `etime` >= NOW();
Of course, at least part of this change would have to be optional for backwards compatibility.