def METHOD_NAME(self, response_data, userid, userid_expire_date):
    response = jsonify({"response": response_data})
    response.set_cookie(self.configuration.client_configuration.cookie_id, userid, expires=userid_expire_date)
    return response