What is the default cookieAcceptPolicy

Hi,

I'm working on a iOS SDK that needs the cookieAcceptPolicy of the [NSHTTPCookieStorage sharedHTTPCookieStorage] to be NSHTTPCookieAcceptPolicyAlways which should be the default according to the documentation:

The default cookie accept policy is

NSHTTPCookieAcceptPolicyAlways
. Changing the cookie policy affects all currently running applications using the cookie storage.



I've just created a new iOS project in XCode and this does not seem to be the case


// this logs "cookieAcceptPolicy 2"
NSLog(@"cookieAcceptPolicy %@", @([NSHTTPCookieStorage sharedHTTPCookieStorage].cookieAcceptPolicy));


So the questions are

1) Is the sharedHTTPCookieStorage shared accross iOS applications?

2) Can the user of an application change the cookie accecpt policy?

3) Why is the default cookieAcceptPolicy "NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain" even if I did not change it?

4 What is the cookieAcceptPolicy of a UIWebView in a app?



cheers,

Jan

What is the default cookieAcceptPolicy
 
 
Q