lithium\storage\session\adapter\Php::_init PHP Method

_init() protected method

Initialization of the session.
protected _init ( )
    protected function _init()
    {
        if ($this->isStarted()) {
            return true;
        }
        $config = $this->_config;
        unset($config['adapter'], $config['strategies'], $config['filters'], $config['init']);
        foreach ($config as $key => $value) {
            if (strpos($key, 'session.') === false) {
                continue;
            }
            if (ini_set($key, $value) === false) {
                throw new ConfigException('Could not initialize the session.');
            }
        }
    }