protected function loadSessionHandlerParams($params)
    {
        if (isset($params['sessionHandlerParams'])) {
            if ($params['sessionHandlerParams'] instanceof SessionHandlerParams) {
                $this->sessionHandlerParams = $params['sessionHandlerParams'];
            } elseif (is_array($params['sessionHandlerParams'])) {
                $this->sessionHandlerParams = new SessionHandlerParams($params['sessionHandlerParams']);
            }
        }
    }