取消共享网络浏览器控制的会话 Cookie
我的程序上有多个网络浏览器控件,而且它们似乎都共享会话 cookie。 我想要的是他们不共享会话cookie。
我有不同的网络浏览器控件,可以使用不同的帐户打开同一网站,或者打开在会话中存储不同数据的同一网页。
有人有什么想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WebBrowser 控件本质上是 Internet Explorer 呈现器和 HTTP 逻辑的实例,包括 cookie 和会话处理。 cookie 存储在标准 IE cookie 目录中。
如果您想手动处理 cookie,则必须切换到 HttpWebRequest 或 WebClient。
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.