From: Alexander Ebert Date: Tue, 13 Jul 2021 15:32:34 +0000 (+0200) Subject: Removed a legacy condition used in the old session system X-Git-Tag: 5.4.0~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e783043e8fbbf0baeb372b5ad8d0cf735e4276c1;p=GitHub%2FWoltLab%2FWCF.git Removed a legacy condition used in the old session system This is an old condition that dates back to the early days of the keep alive system. The condition does not work with the new session system anymore, because `lastActivityTime` is always mapped to `TIME_NOW`. --- diff --git a/wcfsetup/install/files/lib/data/session/SessionAction.class.php b/wcfsetup/install/files/lib/data/session/SessionAction.class.php index 73e5e4600b..613779c92f 100644 --- a/wcfsetup/install/files/lib/data/session/SessionAction.class.php +++ b/wcfsetup/install/files/lib/data/session/SessionAction.class.php @@ -54,11 +54,6 @@ class SessionAction extends AbstractDatabaseObjectAction */ public function keepAlive() { - // ignore sessions created by this request - if (WCF::getSession()->lastActivityTime == TIME_NOW) { - return []; - } - // update notification counts $this->keepAliveData = [ 'userNotificationCount' => UserNotificationHandler::getInstance()->getNotificationCount(true),