From: Tim Düsterhus Date: Wed, 20 Jan 2021 16:05:15 +0000 (+0100) Subject: Fix disabling of session ACP expiration in debug + dev mode X-Git-Tag: 5.4.0_Alpha_1~414 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8111710a09864a628b5a9e928dcd46cab612484a;p=GitHub%2FWoltLab%2FWCF.git Fix disabling of session ACP expiration in debug + dev mode While this was properly accounted for in SessionHandler::prune() it was not when loading the session. --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 4b66a5d232..14b8742486 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -576,7 +576,9 @@ final class SessionHandler extends SingletonFactory { ($row['userID'] ? self::USER_SESSION_LIFETIME : ( self::GUEST_SESSION_LIFETIME))); if ($row['lastActivityTime'] < (TIME_NOW - $lifetime)) { - return false; + if (!$this->isACP || !ENABLE_DEBUG_MODE || !ENABLE_DEVELOPER_TOOLS) { + return false; + } } $variables = @\unserialize($row['sessionVariables']);