Reset caches in SessionHandler::changeUser()
authorTim Düsterhus <timwolla@arcor.de>
Mon, 2 Jul 2012 19:11:05 +0000 (21:11 +0200)
committerTim Düsterhus <timwolla@arcor.de>
Mon, 2 Jul 2012 19:11:05 +0000 (21:11 +0200)
Closes #630

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 411e4e318fba9118c89d6209286cec117da40102..23c18183589f304c437bd33ec65109570db75f5b 100644 (file)
@@ -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
        }