Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Write a session's expiry in whole seconds
On Lua 5.3 and later a length worked out with a fraction, such as 1.5 * 24 * 60 * 60, is a float, so the signed expiry came out as 1793609024.0, which validate_value refuses, and every login failed. Max-Age took the same .0, which makes a browser ignore it.
-rw-r--r--custom/extensions/auth-file.lua5
-rw-r--r--custom/extensions/auth-inline.lua5
-rw-r--r--tests/extensions/test-auth.lua11
3 files changed, 21 insertions, 0 deletions