Reprint: http://www.hackdig.com/?02/hack-1464.htm
Because to make a similar account open the small auxiliary, but very pit dad found, in a WebBrowser, even if re-login, the display is still a previous account, try to empty the cookie is invalid, visual is the session problem, because the session information belongs to HttpOnly Cookies, so you cannot clear them directly.
Searched a circle, finally found the answer on the StackOverflow.
The HttpOnly cookie can be cleared with the help of WINAPI's InternetSetOption ().
Using system.runtime.interopservices;private const int internet_option_end_browser_session = 42; [DllImport ("Wininet.dll", SetLastError = True)]private static extern bool InternetSetOption (IntPtr hinternet, int Dwoption, IntPtr lpbuffer, int lpdwbufferlength);
and use it where you need to clear the session.
InternetSetOption (IntPtr.Zero, internet_option_end_browser_session, IntPtr.Zero, 0);
After jumping again, you will see that the session has been cleared.
C # Delete WebBrowser control session