Launch Internet Explorer 8 in a separate process using vbscript

Due to the recently added “feature” in IE8, where new windows are automatically associated with a single session , some of our code behaves erratically.

This is because a separate application launched a new IE window when it was activated, and as soon as the user is finished, close the window. This worked fine in IE7 because the session information in the windows remained separate. However, in IE8, since the session is split between IE windows, we find that a pop up application would damage the session in the first application.

I read about the nomerge switch, so this is a workaround, but I was wondering if there is a way to work with the solution in the "CreateObject" vbscript; i.e:

Dim ieWin As Object Set ieWin = CreateObject("InternetExplorer.Application") 

Is there a way to send parameters when calling the CreateObject function?

+7
source share
3 answers

The solution we came up with, although it worked more than anything else, assigned a new URL to the popup.

Previously, it worked as follows:

Call center agents will use our internal application for other duties such as "http: // internally /somepage.faces" on a daily basis. When they received a phone call, a third-party application will launch "HTTP: // internalsite /customerdetails.faces". This caused the problems mentioned above.

The solution we went with:

We have assigned "http: // internalsite /customerdetails.faces" to our own URL, for example, "http: // clientdetailminisite /customer.faces".

In this way, the call center agent could open its main window to other things and still be able to handle calls when they entered.

0
source

No, there is no way to use COM to create an instance of IE that defines this behavior (or any other, such as InPrivate, No Add-ons, etc.). The only thing you can do is create a default automation instance for MediumIL using the CLSID provided for this purpose. http://blogs.msdn.com/b/ieinternals/archive/2011/08/03/internet-explorer-automation-protected-mode-lcie-default-integrity-level-medium.aspx

+4
source

If you have control over the web application that you download using your IE window, you can set the session to "cookieless" ( http://msdn.microsoft.com/en-us/library/aa479314.aspx ), which Allows you to avoid problems that occur with multiple instances.

0
source

All Articles