Fixed virtual session validation
authorAlexander Ebert <ebert@woltlab.com>
Mon, 2 Mar 2015 18:39:09 +0000 (19:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 2 Mar 2015 18:39:09 +0000 (19:39 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 1b3229c1e8bf3e690418b74c30f1cad9560caf20..830231c7401cb19191802fe0163df1c198b3cef7 100644 (file)
@@ -382,7 +382,7 @@ class SessionHandler extends SingletonFactory {
                }
                
                $this->user = new User($this->session->userID);
-               $this->loadVirtualSession();
+               $this->virtualSession = SessionVirtual::getExistingSession($sessionID);
                
                if (!$this->validate()) {
                        $this->session = null;
@@ -391,6 +391,8 @@ class SessionHandler extends SingletonFactory {
                        
                        return;
                }
+               
+               $this->loadVirtualSession();
        }
        
        /**