Move cookie getter and setter to utils
Merge pull request #452 from cbmi/issue-451

Move cookie getter and setter to utils