From e783043e8fbbf0baeb372b5ad8d0cf735e4276c1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 13 Jul 2021 17:32:34 +0200 Subject: [PATCH] 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`. --- .../install/files/lib/data/session/SessionAction.class.php | 5 ----- 1 file changed, 5 deletions(-) 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), -- 2.20.1