I am using the WebBrowser control to display a Login page for user to signing to their account and then application will get contacts from that account.
However, the problem is if user select option "Keep signing" from browser, browser will cache that account name and next login with different account, it will return previous cached account name. This lead to application will get wrong account name.
You guys know how to force WebBrowser to clear all cache before proceed to prevent this problem?
I think WebBrowser use Internet Explorer, which is version 11 on my machine.
I solved my problem by follow this link: http://mdb-blog.blogspot.com/2013/02/c-winforms-webbrowser-clear-all-cookies.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With