Added cookie handling to iOS