取消共享网络浏览器控制的会话 Cookie

发布于 2024-12-13 09:12:15 字数 138 浏览 3 评论 0原文

我的程序上有多个网络浏览器控件,而且它们似乎都共享会话 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹过旳痕迹 2024-12-20 09:12:15

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文