'Logs an error if the user marked at the time of process_request
does not match either the current user in the request or the
given userid_in_session.'

@staticmethod
def _verify_user(request, userid_in_session):

    if hasattr(request, 'safe_cookie_verified_user_id'):
        if (request.safe_cookie_verified_user_id != request.user.id):
            log_func = (log.debug if (request.user.id is None) else log.warning)
            log_func("SafeCookieData    user    at    request    '{0}'    does    not    match    user    at    response:    '{1}'".format(request.safe_cookie_verified_user_id, request.user.id))
        if (request.safe_cookie_verified_user_id != userid_in_session):
            log.warning("SafeCookieData    user    at    request    '{0}'    does    not    match    user    in    session:    '{1}'".format(request.safe_cookie_verified_user_id, userid_in_session))
