Cookies get/set algorithms properly now