Hello,
I have to clear the browser’s cookies section to get rid of the useless previous user’s details.
You can do it by following code, you need to clear the cache and delete the all the Application Cache and the HTML5 Web Storage.
//Clear all the Application Cache, Web SQL Database and the HTML5 Web Storage
Android.Webkit.WebStorage.Instance.DeleteAllData();
// Clear all the cookies
Android.Webkit.CookieManager.Instance.RemoveAllCookies(null);
Android.Webkit.CookieManager.Instance.Flush();
If you want to do clear cache at the runtime, you can copy above code to the onCreate method of MainActivity.cs, then you can send messenger to invoke the clear cache code.
Best Regards,
Leon Lu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.