lithium\storage\session\adapter\Php::__construct()
Constructor. Takes care of setting appropriate configurations for this object. Also sets session ini settings.
Parameters
-
array
$config
Configuration options matching the pattern
'session.*'
are interpreted as session ini settings. Please consult the PHP documentation for further information. A few ini settings are set by default here and will overwrite those from your php.ini. To disable sending a cache limiter set'session.cache_limiter'
tofalse
.
Returns
voidSource
public function __construct(array $config = []) {
if (empty($config['session.name'])) {
$config['session.name'] = basename(Libraries::get(true, 'path'));
}
$this->_autoConfig($config + $this->_defaults, []);
$this->_autoInit($config);
}