adds setting a cookie