Hi,
news-server.maine.rr.com said:
Hi,
I'm looking for sample code or your input, on how to create a new window
with a new session, while the parent window remains in its original session.
For example, a link from the parent window would open a new window in a new
session, but the parent session would still be valid.
Is this possible?
Thanks for any tips.
Frank
That's not possible. For the web browsers, the session is linked to the
process in which the web browser runs. If you start two instances of the
IE process (IEXPLORE.EXE), each one will have a distinct session ID.
However, if you just open a new window from the current instance of
IEXPLORE, the new window will run in the same process, thus have the
same Session ID. It is not possible using a link to start a new instance
of a process on the client, or to open a new window in another existing
instance of a process.
What you can do, however, is use another way to identify your windows
(for example using a combination of SessionID and window name, since the
window's name must be unique inside of a session), and to implement your
own "window-session" management on the server. it's not very difficult.
Also (you didn't precise what kind of client you have), if you have a
rich client (for example WinForms application), then you can start
multiple sessions from one client only using different CookieContainers
for each web request. I don't think it's what you're doing though.
Greetings,
Laurent