0

In my android application I have a webview. It loads URLs from multiple domains. I need to delete all cookies from a specific domain. I want to keep cookies from other domains. But I need to delete all cookies from one domain.

How could I implement this. Please give a code snippet so that I can understand as I have read solutions on stackoverflow but not able to understand.

Jarvis
  • 503
  • 2
  • 5
  • 17
  • Check this: http://stackoverflow.com/questions/5404274/make-android-webview-not-store-cookies-or-passwords – Coder Mar 19 '15 at 09:07
  • But this is not domain specific. It will remove other as well. Actually I am using google analytics as well in my website which I am showing in the webview. Thats why I want to specifically remove cookie for particular domians. – Jarvis Mar 19 '15 at 09:46
  • public abstract String getCookie (String url): Use this to get cookies from Google Analytics, then, remove all coookies and then, set cookie for analytics using public void setCookie (String url, String value, ValueCallback callback). – Coder Mar 19 '15 at 10:02

0 Answers0