From: Marcel Werk Date: Thu, 27 Feb 2014 16:59:12 +0000 (+0100) Subject: Fixed session delete (logout) issues X-Git-Tag: 2.0.3~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=235c040a9e4cdfbb62fdf331f40df64cc549b192;p=GitHub%2FWoltLab%2FWCF.git Fixed session delete (logout) issues --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 0291590032..14f431a787 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -1,6 +1,7 @@ user->userID) { + self::resetSessions(array($this->user->userID)); + + // update last activity time + if (!class_exists('\wcf\system\WCFACP', false)) { + $editor = new UserEditor($this->user); + $editor->update(array('lastActivityTime' => TIME_NOW)); + } + } + // set user to guest $this->changeUser(new User(null), true); @@ -566,11 +578,6 @@ class SessionHandler extends SingletonFactory { $sessionEditor = new $this->sessionEditorClassName($this->session); $sessionEditor->delete(); - // clear storage - if ($this->user->userID) { - self::resetSessions(array($this->user->userID)); - } - // disable update $this->disableUpdate(); }