doc comment for setCookie