Example #1
0
 /**
  * Get hostname for session Id
  * @method hostnameSessionFromId
  * @static
  * @param {string} $sessionId Session Id
  * @return {string}
  */
 static function hostnameSessionFromId($sessionId)
 {
     $hostname = self::hostnameFromRequest();
     $hs = self::dbSelect('hostname_session', compact('hostname', 'sessionId'));
     if (!$hs) {
         self::$new_hostname_session = true;
         $hs = self::dbInsert('hostname_session', compact('hostname', 'sessionId'));
     }
     return $hs;
 }