updated ios cookie handling