title: How to share cookies set in response in WKWebview with further dataTaskWithRequests
body: <p>I'm trying to set cookies on a dataTask on <code>NSURLSession.sharedSession()</code>, obtained from a webpage in a WKWebView instance.</p>
  
  <p>Somehow when reading the cookies from <code>NSHTTPCookieStorage.sharedHTTPCookieStorage()</code> after visiting the webpage with cookies set from the server, I'm not always getting the cookies the first attempt reading them. It seems that WKWebView uses some background proces/scheduling for persisting the cookies... anybody with experience/best practices/workaround for this, or maybe I'm just doing it wrong? </p>