Write a cookie