9

I am working on a incongnito browser.I am using wkwebview when I clear all the cookies I can see that popular search engine like google remembers the searches that has been made.

I tried cleaning all the cookies in NSHTTPCookieStorage and resetcookies using NSURLSession but its still not working.

Shiva
  • 465
  • 1
  • 7
  • 38

1 Answers1

9

Set nonpersistentdatastore for wkwebsitedatastore for wkwebviewconfiguration for wkwebview

Set NSURLrequestreloadcacheignoringlocalandremotecachedata for NSURlrequest in uiwebview

Reference

Creating a non-tracking in-app web browser

Community
  • 1
  • 1
Veeravel
  • 254
  • 2
  • 12
  • Exactly what I was looking for! – jegadeesh Jun 12 '19 at 05:37
  • 1
    We now have to use WKWebsiteDataStore.nonPersistent() to create a non-persistent data store, then assign it to the configuration.websiteDataStore before instantiating WKWebView with the said configuration. – ekscrypto Jun 20 '19 at 15:15