Some helper methods for handling cookies in the browser