Properly purging languageID from session variables on login/logout
authorAlexander Ebert <ebert@woltlab.com>
Fri, 20 Mar 2015 14:30:15 +0000 (15:30 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 20 Mar 2015 14:30:15 +0000 (15:30 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 093238cfc6124dece235402adb2e5db6563fe6e5..2e72d28c32d4df02b6829145f9bb48950b7813a4 100644 (file)
@@ -713,6 +713,9 @@ class SessionHandler extends SingletonFactory {
                $this->languageID = $this->user->languageID;
                $this->styleID = $this->user->styleID;
                
+               // in some cases the language id can be stuck in the session variables
+               $this->unregister('languageID');
+               
                EventHandler::getInstance()->fireAction($this, 'afterChangeUser');
        }