public function setCookieParams(array $params)
    {
        $defaults = $this->getCookieParams();

        // Override defaults if present
        $params = array_merge($defaults, $params);

        return session_set_cookie_params(
            intval($params['lifetime']), 
            $params['path'], 
            $params['domain'], 
            (bool) $params['secure'], 
            (bool) $params['httponly']
        );
    }