From fee2c2e57a65b7a44806b6d869c1ec500e973756 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 2 Jul 2012 21:11:05 +0200 Subject: [PATCH] Reset caches in SessionHandler::changeUser() Closes #630 --- .../files/lib/system/session/SessionHandler.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 411e4e318f..23c1818358 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -486,6 +486,11 @@ class SessionHandler extends SingletonFactory { 'username' => $this->user->username )); + // reset caches + $this->groupData = null; + $this->languageIDs = null; + $this->languageID = $this->user->languageID; + // truncate session variables } -- 2.20.1