Jump to content
Sign in to follow this  

Get the handle of new IE session

Recommended Posts



My requirement is to open multiple Internet Explorer each with "new session".

I could not find a way to open an IE with new session in AutoIt.

So, i updated the windows registery and made the required changes to open IE in a new session every time.

The problem is, that still if I open a new IE from AutoIt, it opens with the old session.

$oIE = _IECreate($url_1)

But from outside if i double click the IE it opens in the new session.

Can you please suggest me on how to go about this.

Thank you


Share this post

Link to post
Share on other sites

When you say "new session", is it new Tab or new Window ?

#include <IE.au3>

; based on a DaleHohm example

Const $navOpenInNewTab = 0x0800
Const $navOpenInBackgroundTab = 0x1000
$oIE1 = _IECreate ( "www.bing.com" )
_IEErrorNotify ( False )
$_Url = "www.autoitscript.com"
$oIE1.navigate ( $_Url, $navOpenInNewTab )

    $oIE2 = _IEAttach ( $_Url, "url" )
    Sleep ( 250 )
Until IsObj ( $oIE2 )

Sleep ( 2000 )
_IENavigate ( $oIE1, $_Url )
_IENavigate ( $oIE2, "www.bing.com" )

Like that you can get an object variable for each IE tab :)

Edited by wakillon

AutoIt X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post

Link to post
Share on other sites

Have you guys found a solution for this? The @wakillon code didn't work for me.

I need the same as OP. I need two different windows opened with different session for IE8.

I heard that with IE7 this is done automatically but I can't downgrade to IE7 on my VPS since it's Windows Server 2008 R2.

So, how can I open two windows with diferent sessions in IE8?

Thank you.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.