def METHOD_NAME(self, request):
    userid = request.cookies.get(self.configuration.client_configuration.cookie_id)
    if userid is None:
        userid = str(uuid.uuid4().hex)
        YLogger.debug(self, "Setting userid cookie to :%s" % userid)
    else:
        YLogger.debug(self, "Found userid cookie : %s" % userid)
    return userid