def qualys_logout(session_object, config):
    """
    Logs out of the Qualys API v2
    :param session_object: requests session object of the current session.
    :param config: confiture object that contains the quart configuration.
    :return: requests session oject, answer of the server.
    """
    payload = {'action': 'logout'}
    url = config.subsection('qualys').get('url') + '/api/2.0/fo/session/'
    return session_object.post(url, data=payload)