public function __construct() { parent::__construct(); $this->resolveRequestUrl(); // TODO: how should we determine this? if (!defined('LOCATION_BYPASS')) { define('LOCATION_BYPASS', 1); } $this->sessionClass = 'vB_Session_Web'; }
public function __construct($vars) { $serverVars = array('ipAddress', 'altIp', 'sessionHost', 'userAgent', 'referrer'); foreach ($serverVars as $serverVar) { if (!empty($vars[$serverVar])) { $this->{$serverVar} = $vars[$serverVar]; unset($vars[$serverVar]); } } parent::__construct(); foreach ($vars as $var => $value) { $this->{$var} = $value; } }
public function __construct() { parent::__construct(); $this->sessionClass = 'vB_Session_Api'; }