Type Method

sharedCookieStorageForGroupContainerIdentifier:

Returns the cookie storage instance for the container associated with the specified app group identifier.

Declaration

+ (NSHTTPCookieStorage *)sharedCookieStorageForGroupContainerIdentifier:(NSString *)identifier;

Parameters

identifier

The app group identifier.

Discussion

By default, apps and associated app extensions will have different data containers. As a result, the value of the NSHTTPCookieStorage class’s sharedHTTPCookieStorage property will refer to different persistent cookie stores when called by the app and by its extensions.You can use this method to create a persistent cookie storage available to all apps and extensions with access to the same app group.

Subsequent calls to the this method with the same identifier will return the same storage instance.

See Also

Getting the Shared Cookie Storage Object

sharedHTTPCookieStorage

The shared cookie storage instance.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software