This article is a mirror article of machine translation, please click here to jump to the original article.

View: 22365|Reply: 1

[WinForm] C# 6 ways to clear webbrowser cookies/sessions

[Copy link]
Posted on 3/19/2018 10:37:10 AM | | | |
Here are 6 ways I tested to clear cookies in a webbrowser:



Method 1:





Method 2:
Just this sentence:


Method 3:

ShellExecute method:
Method 4:

Method 5:

Put wb. Navigate("javascrip{filtering}t:void((function(){...) } content is replaced with the code commented below, write the domain you want to clear the cookier and then you can clear it, but you can't clear the session, this is from the foreign website, actually invalid!

Method 6:


About the InternetSetCookie method, search for it on the Internet.




Previous:Newcomers report, learn to learn, and ask for care
Next:Software version - the difference between Alpha, Beta, and RC versions
 Landlord| Posted on 5/29/2018 3:12:42 PM |
document that I used to use. ExecCommand("ClearAuthenticationCache", false, null);  to clear cookies
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com