We are experience a weird problem in our App where NSHTTPCookieStorage has duplicate entry for certain cookies. This is after upgrading to iOS 9.1.
Cookie accept policy didn't change, its always been NSHTTPCookieAcceptPolicyAlways
Steps to reproduce:
iOS 9.0.2
install app.
Load URL request(s), response headers have set cookie which creates cookie in cookie storage (Automatically done by NSURLConnection)
print all cookies.
* At this time we observe that we have just one entry for each Cookie name.
Upgrade to 9.1
Open the app
Load URL request(s), response headers have set cookie which creates cookie in cookie storage (Automatically done by NSURLConnection)
Print all cookies.
* This is where we observe two entries for each Cookie name.
Cookie name: Same
Cookie domain: Same
Cookie Path: Same
Cookie Expiration: Valid