update setCookie in documentation