473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Session being kept from brower to browser

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
Aug 10 '06 #1
3 1529
Hi,

tshad wrote:
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
--
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
Aug 11 '06 #2
"Laurent Bugnion" <ga*********@bluewin.chwrote in message
news:OZ**************@TK2MSFTNGP05.phx.gbl...
Hi,

tshad wrote:
>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.
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
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

Aug 11 '06 #3
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
Aug 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: mrbog | last post by:
Tell me if my assertion is wrong here: The only way to prevent session hijacking is to NEVER store authentication information (such as name/password) in the session. Well, to never authenticate...
5
by: Roman | last post by:
Hi, I've installed .net on my server and since then I'm loosing my sessions from my (old) asp. e.g.: Session("test") works on the same page, but if the page is changed the whole session is...
7
by: someone | last post by:
Let's say I have a Session timeout of 20 minutes. If the browser periodically request a graphic file, will that keep its Session alive? What keeps the Session alive? Is it the Session cookie that...
2
by: Wayne Wengert | last post by:
Are Session variables the same as a cookie? In reading a couple of pages I got from searches, I don't get the difference. Basically, I am currently using simple session variables (e.g....
7
by: Marcus | last post by:
I know that when you start a session in PHP, the "cookie" it creates is not the same as those that are stored in your browser's temp folder, and instead is kept in RAM. I am confused because in...
3
by: Rolf Welskes | last post by:
Hello, the following sample application in ASp.net 2.0 / VS2005 (Webproject). in an testPage.aspx ................ <P><A href="01Test01A.aspx">Link to 01Test01 A</A></P> <P><A...
3
by: Arnost Sobota | last post by:
Dear ASP community, I have a question regarding ASP session variables. My assumption was that a session variable has the same lifetime as the session itself: as a consequence, given that...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
9
by: Josh | last post by:
I run a Joomla website and am familiar with php in some but not all aspects. Currently I am trying to find some solutions related to session handling. Am I correct in saying that "login" is kept...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.