Helper methods for setting cookies.