Added get and set cookie methods.