Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
Cannot clear session of Webview credentials

I am opening the website https://groww.in/ in my webview and I wanted to clear the session (logged-in state) every time the app restarts. I have tried almost every possible solution on the internet but didn't find anything helpful. I have also tried the below-mentioned code but that also didn't work.

CookieSyncManager cookieSyncMngr = CookieSyncManager.createInstance(context);
CookieManager cookieManager = CookieManager.getInstance();
cookieManager.removeAllCookie();

as well as

static void clearWebViewAllCache(Context context, WebView webView) {
try {
  AgentWebConfig.removeAllCookies(null);
  webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
  context.deleteDatabase("webviewCache.db");
  context.deleteDatabase("webview.db");
  webView.clearCache(true);
  webView.clearHistory();
  webView.clearFormData();
  clearCacheFolder(new File(AgentWebConfig.getCachePath(context)), 0);
} catch (Exception ignore) {
  //ignore.printStackTrace();
  if (AgentWebConfig.DEBUG) {
    ignore.printStackTrace();
  }
 }
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!