added sync method to sync up the cookies with the registrar, setCookie no longer needs the key as it's always the same,