UPdating cookie code