0
let config = WKWebViewConfiguration();
    config.processPool = WKProcessPool()
    web = WKWebView(frame: self.frame, configuration: config)

I found from stactoverflow , that wkprocesspool can share cookie for multiple wkwebview , but it seems like not working.... anyone help me~~~~pls

George NG
  • 25
  • 1
  • 6
  • 2
    That should work. We do the same in Firefox for iOS. Are you sure all your `WKWebView` instances are using that same single `WKProcessPool` instance? – Stefan Arentz Sep 30 '15 at 13:54

1 Answers1

2

You have to use shared WKProcessPool. But you instantiate a new instance each time.

Alexander Volkov
  • 7,904
  • 1
  • 47
  • 44