private function setCookieParams(array $cookie_params)
    {
        $params = array_merge(session_get_cookie_params(), array_change_key_case($cookie_params));

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