在一个窗口中的多个WebBrower会话/进程 [英] Multiple WebBrower sessions / processes in one window

查看:299
本文介绍了在一个窗口中的多个WebBrower会话/进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建使用WebBrowser控件的多个实例.NET应用程序。美中不足的是,我想每个Web浏览器控件来运行它自己的会话。 IOW,我有一个要求,即会话cookie收集,JavaScript的全局命名空间等是分开的每个实例,并且所有实例在同一窗口中显示出来。

I would like to create a .NET application that utilizes multiple instances of the WebBrowser control. The catch is that I'd like each web browser control to be running it's own session. IOW, I have a requirement that the collection of session cookies, javascript global namespace, etc. is separate for each instance and that all instances appear within the same window.

AFAIK,这将需要我跑在一个单独的进程中的每个Web浏览器控件。

AFAIK, this is going to require me to run each web browser control in a separate process.

几个问题:

  1. 是我讲多进程的假设被要求是否正确?
  2. 是否有可能导致每个web浏览器实例在一个单一的Windows窗体应用程序在一个单独的进程中运行?

在此先感谢...

推荐答案

目前,不,你无法实现使用Web浏览器控件没有把每个实例都在不同的进程这样的隔离。

Currently, no, you cannot implement isolation of this sort using the Web Browser control without putting each instance in a different process.

您可以在适当的运行进程外的COM服务器或应用程序的新实例,每个控件。

You could run each control in an out-of-process COM server or a new instance of your application, if appropriate.

这篇关于在一个窗口中的多个WebBrower会话/进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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