Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Browser: Creating a new instance, not a new window
Browser: Creating a new instance, not a new window [message #456388] Thu, 02 June 2005 04:15
Andrew Magyar is currently offline Andrew MagyarFriend
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
Previous Topic:AutoComplete on a Text Box
Next Topic:Background Image on a Toolbar
Goto Forum:
  


Current Time: Thu Mar 28 14:22:32 GMT 2024

Powered by FUDForum. Page generated in 0.02039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top