problem with session age in seconds
ivan-suhorukov opened this issue · 1 comments
ivan-suhorukov commented
Package version
7.4.0
Describe the bug
Hello! I think i found a bug in file session code. When i sets session age in seconds (e.g. 7200) instead of string (e.g. '2h') i get a wrong session age calculation in this place in session FileStore
:
string.milliseconds.parse()
returns 7200 of milliseconds, then it must be 7200000 milliseconds, so session acts just ~7 seconds.
Reproduction repo
No response
thetutlage commented
Indeed. It should parsed as seconds and then converted to milliseconds for the additional operation.