By testing WebBrowser with IE cache and cookies are stored in the local settings\temporary Internet Files, we can directly invoke IE API to clear
Solution 1:
Public enum int 0 1 1)23 3 4 5)67 8 9 One}
[DllImport ("shell32.dll")] Static extern string string string string lpdirectory, Showcommands nshowcmd);
// Clear IE Temp file "open" "rundll32.exe" " inetcpl.cpl,clearmytracksbyprocess 255"" ", showcommands.sw_hide);
Where clearmytracksbyprocess can choose settings:
Temporary Internet Files (Temporary Internet file)
RunDll32.exe Inetcpl.cpl,clearmytracksbyprocess 8
Cookies
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 2
History (historical record)
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 1
Form. Data (form)
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 16
Passwords (password)
RunDll32.exe Inetcpl.cpl,clearmytracksbyprocess 32
Delete all (remove all)
RunDll32.exe inetcpl.cpl,clearmytracksbyprocess 255
Solution 2: Quickly clear WebBrowser cookies
Wb. Document.Cookie.Remove (01))