We don't want to access superglobals from library constructors; if we want the
prefix to be the server name by default for Horde, we should set that in the
factory.
* @var array
*/
protected $_params = array(
- 'lifetime' => 86400
+ 'lifetime' => 86400,
+ 'prefix' => '',
);
/**
}
$this->_params = array_merge($this->_params, $params);
- if (empty($this->_params['prefix'])) {
- $this->_params['prefix'] = $_SERVER['SERVER_NAME']
- ? $_SERVER['SERVER_NAME']
- : $_SERVER['HOSTNAME'];
- }
}
/**