Removed old cookie functions.
Replaced old calls with new createCookie and eraseCookie