'Validates the given parameters for cookie creation.
Raises SafeCookieError if session_id is None.'

@staticmethod
def _validate_cookie_params(session_id, user_id):

    if ((not session_id) or (session_id == unicode(None))):
        raise SafeCookieError("SafeCookieData    not    created    due    to    invalid    value    for    session_id    '{}'    for    user_id    '{}'.".format(session_id, user_id))
    if (not user_id):
        log.debug("SafeCookieData    received    empty    user_id    '%s'    for    session_id    '%s'.", user_id, session_id)
