• 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: Mon, 22 Feb 2016 07:14:56 +0000

On 19 Feb 2016, at 21:18, Jens Alfke <email@hidden> wrote:

> which makes me wonder why NSURLSessionConfiguration has a URLCredentialStorage property, since there’s no way to create another object to point that property at. Same goes for the HTTPCookieStorage property.

Three points:

* Historically, all of these objects were just plain Objective-C objects so it was reasonable to create your own subclasses.  That has become problematic since the core code was moved to CFNetwork, where you have to deal with the interaction between Cocoa and CF code.

* NSURLSessionConfiguration lets you set them to nil.

* On the latest OS release it /is/ possible to create a cookie store elsewhere via +[NSHTTPCookieStorage sharedCookieStorageForGroupContainerIdentifier:].

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>)

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