开发者

Getting a new session in IE using SHDocVw.InternetExplorer

We are using SHDocVw.InternetExplorer in VB.Net to navigate to a web page and insert the login credentials since we have to log into multiple accounts throughout the day. We want to be able to be logged into to multiple accounts in different windows at the same time, but I don't know how to get a new session started.

If I log into account A, and then try to log into account B, it opens a new window but is automatically account A, since the browser remembers being logged in with that session.

Is there a newSession or something similar that I can call that will get around this problem?

Edit: is this开发者_Python百科 something can can be done using the Navigate function by setting a header?


SHDovVw and the WebBrowser control are all basically embedded versions of IE. If you log into your site using the control and then visit the site in IE you'll see that you're logged in there, too. There's no way to force one control/instance/tab to use a separate cookie system which is basically what you're trying to do. The only way to control sessions is through QueryStrings which could be made unique to each browser.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜