From 72d89f852849f456cd97858dd24325818d34d738 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 21 Jan 2021 11:49:13 +0100 Subject: [PATCH] Fix SessionHandler::getCookieTimestep() The previous commit 563510e451c4b9da820a68006b327413b23d0c30 did not actually use the $window variable in the division. --- .../install/files/lib/system/session/SessionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index f0b5022de5..2f89acb433 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -299,7 +299,7 @@ final class SessionHandler extends SingletonFactory { \assert((self::USER_SESSION_LIFETIME / $window) < 0xFF); - return floor(TIME_NOW / (6 * 3600)) & 0xFF; + return floor(TIME_NOW / $window) & 0xFF; } /** -- 2.20.1