Session being kept from brower to browser

T

tshad

I have noticed that if I open an IE session and log onto my site.

I can open another browser session and that browser will have same session
variables as the first. This causes problems for my application.

The only way around the problem is to close all the browsers and then start
a new browser session.

I don't seem to have the same problem with Mozilla or Firefox.

Why is the sessions working across browsers?

Thanks,

Tom
 
L

Laurent Bugnion

Hi,
I have noticed that if I open an IE session and log onto my site.

I can open another browser session and that browser will have same session
variables as the first. This causes problems for my application.

The only way around the problem is to close all the browsers and then start
a new browser session.

I don't seem to have the same problem with Mozilla or Firefox.

Why is the sessions working across browsers?

Thanks,

Tom

The sessions are linked to the client. If you start IE and then use
Ctrl-N to open a new window in the same process, it will share the same
session. You can check if a new process is started by using Windows'
task manager, and check how many instances if IEXPLORE you have in the list.

However, if you start IE and then again by double-clicking on the IE
icon on your desktop, for example, then you will have two separate
processes, and the sessions won't be shared.

HTH,
Laurent
 
T

tshad

Laurent Bugnion said:
Hi,


The sessions are linked to the client. If you start IE and then use Ctrl-N
to open a new window in the same process, it will share the same session.
You can check if a new process is started by using Windows' task manager,
and check how many instances if IEXPLORE you have in the list.

However, if you start IE and then again by double-clicking on the IE icon
on your desktop, for example, then you will have two separate processes,
and the sessions won't be shared.

Is there a way to programmatically prevent a sharing a session?

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.

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
 
L

Laurent Bugnion

Hi,
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top