title: Using HTTPSCookiesStorage can I screen(filter) cookies storage in URLSession?
body: <p>I have subclassed HTTPCookiesStorage, but the storeCookies() never store the cookies although, i am calling super.storeCookies() within the method.</p>
  
  <p>Session stores the cookies automatically if i dont override the configuration with my custom httpCookiesSession object. I am kind of lost here.</p>
  
  <p><strong>This is the URLSession call</strong> </p>
  
  <pre><code>   var configration = URLSessionConfiguration.default
      //configration.httpCookieStorage = customHTTPCookiesStorage()
  
      let session = URLSession.init(configuration: configration)
  
  
  
      if let url = URL.init(string: "https://google.com"){
          session.dataTask(with: url) { sip,sap,su in
              print(sip,sap,su)
  
              var x = session.configuration.httpCookieStorage?.cookies
  
          }.resume()
      }
  </code></pre>
  
  <p><strong>This is the custom class</strong></p>
  
  <pre><code>class customHTTPCookiesStorage: HTTPCookieStorage {
  
      override func storeCookies(_ cookies: [HTTPCookie], for task: URLSessionTask) {
  
          super.storeCookies(cookies, for: task)
          for cookies in cookies{
              session?.session.configuration.httpCookieStorage?.setCookie(cookies)
          }
  
          print("This is where cookies are stored")
      }
  }
  </code></pre>
  
  <p><strong>Update 1</strong>
  My aim is not to store the cookies in httpcookiesstore when Http response status in 401</p>