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`.
*/
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),