prevent sending a cookie out twice