From 9b1e73a71f266430edb0836d850e56407ede7101 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 16 Jan 2013 21:01:59 +0100 Subject: [PATCH] Set user to guest before deleting session. --- .../install/files/lib/system/session/SessionHandler.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index e53ea02af3..00108f2e8a 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -552,6 +552,9 @@ class SessionHandler extends SingletonFactory { * Deletes this session and it's related data. */ public function delete() { + // set user to guest + $this->changeUser(new User(null), true); + // remove session $sessionEditor = new $this->sessionEditorClassName($this->session); $sessionEditor->delete(); -- 2.20.1