Add more api for set cookies (partial).