473,473 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Session ID with multiple browsers

I am trying to identify a problem that has just been reported to our
team. It seems that when a user opens 2 browsers, and with the second
browser, the user logs into our web application (ASP.NET), then the
session for that browser is not transferred to any new browsers that
are spawned using the javascript window.open statement.

However, if the user logs into the web app using the first browser
instance (not the second), then all is fine.

In debugging, we can see the SessionID and it seems that the browser
that is created use the Session from the first browser. What are we
doing wrong?

Any ideas/help would be great.

Nov 19 '05 #1
3 2162
You're not going to like this, but I typically recommend to not use Sesison
state if possible. If you are going to use it, then you need to code it in
such a way to avoid the multiple browser issue. IOW, write the code to assume
the user always has 2 (or 3 or 4) browsers open.

-Brock
DevelopMentor
http://staff.develop.com/ballen
I am trying to identify a problem that has just been reported to our
team. It seems that when a user opens 2 browsers, and with the second
browser, the user logs into our web application (ASP.NET), then the
session for that browser is not transferred to any new browsers that
are spawned using the javascript window.open statement.

However, if the user logs into the web app using the first browser
instance (not the second), then all is fine.

In debugging, we can see the SessionID and it seems that the browser
that is created use the Session from the first browser. What are we
doing wrong?

Any ideas/help would be great.


Nov 19 '05 #2
Correct. When you open a new browser window without
it coming from a page in your app, a new browser session
is created. It works this way with most browsers.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp

<ja*************@uhc.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
I am trying to identify a problem that has just been reported to our
team. It seems that when a user opens 2 browsers, and with the second
browser, the user logs into our web application (ASP.NET), then the
session for that browser is not transferred to any new browsers that
are spawned using the javascript window.open statement.

However, if the user logs into the web app using the first browser
instance (not the second), then all is fine.

In debugging, we can see the SessionID and it seems that the browser
that is created use the Session from the first browser. What are we
doing wrong?

Any ideas/help would be great.

Nov 19 '05 #3
Correct. When you open a new browser window without
it coming from a page in your app, a new browser session
is created. It works this way with most browsers.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp

<ja*************@uhc.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
I am trying to identify a problem that has just been reported to our
team. It seems that when a user opens 2 browsers, and with the second
browser, the user logs into our web application (ASP.NET), then the
session for that browser is not transferred to any new browsers that
are spawned using the javascript window.open statement.

However, if the user logs into the web app using the first browser
instance (not the second), then all is fine.

In debugging, we can see the SessionID and it seems that the browser
that is created use the Session from the first browser. What are we
doing wrong?

Any ideas/help would be great.

Nov 19 '05 #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...
14
by: Darrin J Olson | last post by:
I am trying to end a session for a site without having to completely close the browser to end it. When I access the site and log in it works fine. If I log out and in with a different account...
3
by: headware | last post by:
I have an issue that I've been encountering in an ASP application I'm working on. Most of the application is written in ASP, but there is one page written in ASP.NET. The ASP.NET page needs to have...
1
by: jack_c_brinegar | last post by:
I am trying to identify a problem that has just been reported to our team. It seems that when a user opens 2 browsers, and with the second browser, the user logs into our web application...
0
by: bill | last post by:
I am developing a replacement of a VB6 web class application, using VB.NET 2005 web forms to replace the VB6 dll application. When debugging the VB6 web application, I found that if I have two or...
6
by: Tarun Mistry | last post by:
Hi everyone, thought my current testing, it seems a new session is opened for a user per browser window. I would like my sessions to track based on the machine, i.e. once per machine. What...
8
by: jaibux | last post by:
Everybody knows how to open (or clone) the same page that you are viewing in a new browser window by CTRL+N or via File->New Window. the question is how to PREVENT to open the SAME WEB APPLICATION...
5
by: jediknight | last post by:
Is it possible to programmatically stop multiple browsers from getting the same session state? The problem I have is that whenever I open a new browse using File- I would like to stop this...
1
by: =?Utf-8?B?VmlqYXkgQ2hpa3Rl?= | last post by:
Hi Experts, With Session Affinity and Web Server Farm on ISA Server 2006 accessing 2 backend IIS servers, I’m getting error “Validation of ViewState MAC failed. If this application is hosted...
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: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.