问题
I have more than one webbrowser controls on my program, and it seams they all share session cookies. What i want is that they DONT share the session cookies.
I have different webbrowser controls that opens the same website with different accounts, or open the same web-page that store different data in session.
Anyone has any idea?
回答1:
The WebBrowser control is essentially an instance of Internet Explorer's renderer and HTTP logic, including cookie and session handling. The cookies are stored in the standard IE cookie directory.
You'll have to switch to HttpWebRequest or WebClient if you want to manually handle cookies.
来源:https://stackoverflow.com/questions/7969630/un-share-session-cookies-of-webbrowser-control