On 22 Feb 2016, at 17:52, Jens Alfke <j...@mooseyard.com> wrote:

> I know that method is meant for extensions, but can it be used for other 
> reasons to create multiple independent cookie stores used by a single app?

There's nothing to stop you doing this but…

> In Couchbase Lite we need to support multiple simultaneous replication 
> contexts, each with their own login credentials, which means independent 
> cookie storage (since login state is often stored in session cookies.) It 
> would be very useful if we could define a unique “group container identifier” 
> for each replication, and use the above method to create cookie stores.

It sounds like you'd be better off with a subclass of NSHTTPCookieStorage.

Just FYI, a couple of years ago I filed a bug requesting that 
NSHTTPCookieStorage support something like -initWithCookieStoreURL: 
<rdar://problem/16353276>.  Feel free to file your own bug about that.  I 
wouldn't be surprised it it got closed as a dup, but it's useful for us to 
capture your specific requirements.

<https://developer.apple.com/bug-reporting/>

Please post your bug number, just for the record.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to