Un-Share Session Cookies of webbrowser control

帅比萌擦擦* 提交于 2019-12-04 05:51:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!