Ejemplo n.º 1
0
 /**
  * Starts the session system.
  */
 protected function initSession()
 {
     require_once WCF_DIR . 'lib/system/session/SessionFactory.class.php';
     $factory = new SessionFactory();
     self::$sessionObj = $factory->get();
     // check if the user changed to another package in the ACP
     if (self::getSession()->packageID != PACKAGE_ID) {
         self::getSession()->updateUserData();
     }
     self::$userObj = self::getSession()->getUser();
 }