Hi,
tshad wrote:
Is there a way to programmatically prevent a sharing a session?
If you mean, prevent that different windows *in the same client* share a
session, then it won't be very easy, but it's possible. Give each window
a unique name, and pass this unique name to the server with each
request, and then implement your own session handling on the server.
Honestly, though, I wouldn't do it. Sounds overly complicated. It's
easier to design your server-side application to handle that case.
I haven't found out what causes it yet (it isn't a Ctrl-N), but in some
cases when I start another IExplorer session, it does share the session if I
go into my Web Applications - but not always.
AFAICS there are a few operations resulting in a new window opening in
IE6 within the currently running process, i.e. with the same session:
- Ctrl-N
- double-clicking on a Internet Shortcut (not the IE shortcut, but a
bookmark saved on your desktop for example)
- Right-click on a hyperlink and choosing Open in new window
Maybe there are more.
I tried opening 3 IExplorer sessions and looked at a page where I had
trace="true" and found that they had different SessionIDs. But there are
cases where this is not the case.
I need to programmatically prevent a shared session. I can't think of a
singe reason where I would want that, but I can see where that might mess me
up.
Thanks,
Tom
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch