我可以使用不同的Web浏览器组件查看不同的Cookie吗? [英] Can I have different webbrowser components looking at different cookies?

查看:91
本文介绍了我可以使用不同的Web浏览器组件查看不同的Cookie吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我已经编写了一个多网络浏览器应用程序.为了创建多浏览器体验,我创建了一个标签控件并创建了自定义标签页,这些标签页在创建时会创建它们 内置的Webbrowser控件,这使得选项卡页和浏览器之间可以非常紧密地集成在一起,也使我可以在选项卡页中完成大部分工作以进行浏览.

I have written a multi webbrowser application. To create the multi browser experience I have created a tab control and created custom tab pages which when created creates their own webbrowser control inside them, this allow very tight integration between the tab page and the browser, it also allows me to do most of the work in the tab page for browsing.

对于我们的业务,我们使用基于网络的应用程序,该应用程序使用cookie来通知员工正在与哪个客户打交道,我们的目标是能够拥有多个网页 开放并能够一次处理多个客户.目前,当我尝试执行此操作时,无论打开多少网页,它们都与第一个浏览器使用相同的客户,因为它们使用的是相同的Cookie.

For our business we use a web based application that uses cookies to inform the Staff member which customer they are dealing with, our aim is to be able to have multiple webpages open and being able to work on multiple customers at once. When I try to do this at the moment it doesn’t matter how many webpages we have open they all look at the same customer as the first browser because they are using the same cookie.

我在这里尝试了不同的方法,但我不相信自己找到了一个很好的解决方案.

Wininet.dll和INTERNET_OPTION_END_BROWSER_SESSION,这只会重置所有浏览器.如果网络浏览器位于其他应用程序中,则INTERNET_OPTION_PROXY似乎可以正常工作, 它们是

Wininet.dll and the INTERNET_OPTION_END_BROWSER_SESSION, this just resets all the browsers. INTERNET_OPTION_PROXY seems to work if the webbrowsers are in the different application, which they are L

我也查看过webbrowser.document.cookie,但始终为Null所以不确定如何使这项工作?

我现在正走在拥有服务器多个地址的轨道上由于Cookie被标记为url,因此每个会话都可以使用不同的地址,因此无法运行 彼此之间.这是最好的方法吗?

I’m now heading down the track of having multiple addresses for the server as a cookie is tagged to a url, each session could then use a different address and hence not run over each other. Is this the best way to go?

 

推荐答案

我正在研究,我进行处理后会回发.

 

最诚挚的问候,

Harry Zhu- MSFT

Harry Zhu- MSFT

论坛中的MSDN订户支持

如果您对我们的支持有任何反馈,请联系msdnmg@microsoft.com

 


这篇关于我可以使用不同的Web浏览器组件查看不同的Cookie吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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