Create virtual sessions for guests
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 8 Mar 2016 23:33:08 +0000 (00:33 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 25 Mar 2016 19:18:34 +0000 (20:18 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index e067ec81f1b2ab5505cd70c00655aa295e296c63..06b2f16a411a6f94c0f711afbe6929e8fc50944c 100644 (file)
@@ -431,9 +431,9 @@ class SessionHandler extends SingletonFactory {
         * @param       boolean         $forceReload
         */
        protected function loadVirtualSession($forceReload = false) {
-               if ($this->virtualSession === false || $forceReload) {
+               if ($this->virtualSession === null || $forceReload) {
                        $this->virtualSession = null;
-                       if ($this->user->userID && $this->supportsVirtualSessions) {
+                       if ($this->supportsVirtualSessions) {
                                $virtualSessionAction = new SessionVirtualAction(array(), 'create', array('data' => array('sessionID' => $this->session->sessionID)));
                                
                                try {