fix: allow calling setCookie() multiple times