Browser: Creating a new instance, not a new window [message #456388] |
Thu, 02 June 2005 04:15 |
Andrew Magyar Messages: 4 Registered: July 2009 |
Junior Member |
|
|
I'm using multiple Browser objects in one SWT application. The problem
is that the default implementation creates several IE's (I'm on Windows)
that share a common http session with the web server. This is not desired.
To give an example. If you start one IE browser and begin a session with
a web site and then press Ctrl+N (File->New Window) you can continue the
session in the new window. If you however, run IEXPLORE.EXE from
the desktop, a shortcut, etc you will get a new window as well, but the
browser will get it's own session and not "run over" the other browser's
session that is open.
I basically need to open the same website in multiple Browser instances
and have each maintain their own sessions.
So, I've dug around in the source and I'm afraid my Windows COM is a bit
rusty. I have no idea how to get Browser (or one of it's parent classes,
ie. COleControl, etc) to create a new instance of IE with it's
own session. Things like apartment model threading an CreateInstanceEx
start coming to mind, but it's hazy.
Anyone have any ideas? I've considered trying to switch it over to
Mozilla, but I figured I'd have similar problems with it.
Andrew
|
|
|
Powered by
FUDForum. Page generated in 0.03633 seconds