WebBrowser控件取消共享会话Cookie [英] Un-Share Session Cookies of webbrowser control

查看:573
本文介绍了WebBrowser控件取消共享会话Cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的计划多个WebBrowser控件,并且接缝都共享会话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.

任何人有任何想法?

推荐答案

WebBrowser控件实际上是Internet Explorer的渲染器和HTTP逻辑的一个实例,包括cookie和session处理。饼干存储在标准的IE cookie的目录。

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.

您将有,如果你想手动处理Cookie切换到的HttpWebRequest或WebClient的。

You'll have to switch to HttpWebRequest or WebClient if you want to manually handle cookies.

这篇关于WebBrowser控件取消共享会话Cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆