コード例 #1
0
 /**
  * Load session and compute if session is not expired
  *
  * @param string $sessionId
  */
 public static function load($sessionId)
 {
     if (self::$instance != null) {
         return;
     }
     self::$instance = new Gpf_Session(self::getSessionName('RPC'));
     if ($sessionId !== null) {
         self::$instance->setId($sessionId);
     }
     self::$instance->start();
     if (!self::$instance->existsVar(self::AUTH_USER)) {
         throw new Gpf_Rpc_SessionExpiredException();
     }
     self::$instance->createAuthUser();
 }