I use the WebBrowser control to display the login page to log in to my account, and then the application will get the contacts from this account.
However, the problem is that if the user selects the “Continue subscription” option from the browser, the browser will cache this account name and the next login with a different account, it will return the previous name of the cached account. This will result in an invalid account name.
Do you guys know how to get WebBrowser to clear the entire cache before proceeding to prevent this problem?
I think WebBrowser uses Internet Explorer, which is version 11 on my machine.
source
share