Removed a legacy condition used in the old session system
authorAlexander Ebert <ebert@woltlab.com>
Tue, 13 Jul 2021 15:32:34 +0000 (17:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 13 Jul 2021 15:32:34 +0000 (17:32 +0200)
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`.

wcfsetup/install/files/lib/data/session/SessionAction.class.php

index 73e5e4600b0a75291edce17f5cd5733d9539dcf5..613779c92f6676afeb9dd67cc69fa4399ad4371d 100644 (file)
@@ -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),