From: Tim Düsterhus Date: Thu, 1 Oct 2020 09:24:04 +0000 (+0200) Subject: Stop maintaining the virtual session's lastActivityTime X-Git-Tag: 5.4.0_Alpha_1~724^2~13^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1cf71c23a2ac4624a25367fdb0ad4a2ac8efd25;p=GitHub%2FWoltLab%2FWCF.git Stop maintaining the virtual session's lastActivityTime Virtual sessions are about to be removed. This change does not affect user visible behavior, apart from possibly expiring the session faster. --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index d525051078..dce3fd4819 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -840,17 +840,6 @@ class SessionHandler extends SingletonFactory { /** @var \wcf\data\DatabaseObjectEditor $sessionEditor */ $sessionEditor = new $this->sessionEditorClassName($this->session); $sessionEditor->update($data); - - if ($this->virtualSession instanceof ACPSessionVirtual) { - if ($this->isACP) { - $virtualSessionEditor = new ACPSessionVirtualEditor($this->virtualSession); - } - else { - $virtualSessionEditor = new SessionVirtualEditor($this->virtualSession); - } - - $virtualSessionEditor->updateLastActivityTime(); - } } /** @@ -865,16 +854,6 @@ class SessionHandler extends SingletonFactory { $sessionEditor->update([ 'lastActivityTime' => TIME_NOW ]); - - if ($this->virtualSession instanceof ACPSessionVirtual) { - if ($this->isACP) { - $virtualSessionEditor = new ACPSessionVirtualEditor($this->virtualSession); - } - else { - $virtualSessionEditor = new SessionVirtualEditor($this->virtualSession); - } - $virtualSessionEditor->updateLastActivityTime(); - } } /**