• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What does NSURLCredentialPersistenceForSession mean, exactly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does NSURLCredentialPersistenceForSession mean, exactly?


  • Subject: Re: What does NSURLCredentialPersistenceForSession mean, exactly?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Tue, 23 Feb 2016 07:13:28 +0000

On 22 Feb 2016, at 17:52, Jens Alfke <email@hidden> 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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: What does NSURLCredentialPersistenceForSession mean, exactly?
      • From: Jens Alfke <email@hidden>
References: 
 >What does NSURLCredentialPersistenceForSession mean, exactly? (From: Jens Alfke <email@hidden>)
 >Re: What does NSURLCredentialPersistenceForSession mean, exactly? (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: What does NSURLCredentialPersistenceForSession mean, exactly? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: CFNetwork is not adding Authorization: headers proactively
  • Next by Date: Re: CFNetwork is not adding Authorization: headers proactively
  • Previous by thread: Re: What does NSURLCredentialPersistenceForSession mean, exactly?
  • Next by thread: Re: What does NSURLCredentialPersistenceForSession mean, exactly?
  • Index(es):
    • Date
    • Thread