The session and session ID is being reused between multiple browsers

  • Thread starter Thread starter Max2006
  • Start date Start date
M

Max2006

Hi,

I have an internal asp.net 3.5 intranet application that includes only one
page.

Based on requirements, each user can open multiple browser window and use
the application.

The problem is when users open the second browser window, the session ID is
same as the 1st browser. That means once a session is created by the 1st
browser window, subsequent browsers use the same session. The only way to
have a new session ID is to close all of the browser windows and the open a
new one. Sessions are shared with the same type of browsers. (IE with IE, FF
with FF and Chrome with Chrome)

I verified that by enabling the trace in the page.

I went through the Microsoft kb article 899918
(http://support.microsoft.com/kb/899918) and I guess this is the default
behavior.

How can I change this behavior? How can I have one unique session (and
session ID) for each browser windows even they are opened simultaneously?

Thank you.Max
 
use cookieless sessions. the browser will share the session cookie as
you see. you can also code for this by having some transactionid in each
page.

-- bruce (sqlwork.com)
 
Hi Bruce,

Thank you for help.

Is there any way to achieve this without cookie less sessions? My users
won't like the cookie less urls.

Also, I think this problem doesn't appear when pages are protected by forms
authentication.

Thanks again...Max
 
Hello Max,

Session are shared with the same type of browsers. Do you want to apply an
independent Session in each page(browser window)?
If that's what you want, please use ViewState instead of Session. ViewState
is used in the specific page and Session is used for the browser instance.
http://msdn.microsoft.com/en-us/library/ms972976.aspx

--
Sincerely,

Vince Xu

Microsoft Online Support


==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
--------------------
| From: "Max2006" <[email protected]>
| Subject: The session and session ID is being reused between multiple
browsers
| Date: Wed, 25 Nov 2009 20:03:29 -0500
| Lines: 1
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| format=flowed;
| charset="iso-8859-1";
| reply-type=original
| Content-Transfer-Encoding: 7bit
| X-Priority: 3
| X-MSMail-Priority: Normal
| Importance: Normal
| X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
| X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
| X-MS-CommunityGroup-PostID: {CEDA74BF-1260-4404-800A-E6D2FB25EF75}
| X-MS-CommunityGroup-MessageCategory:
{E4FCE0A9-75B4-4168-BFF9-16C22D8747EC}
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Path: TK2MSFTNGHUB02.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:94580
| NNTP-Posting-Host: TK2MSFTNGHUB02.phx.gbl 127.0.0.1
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi,
|
| I have an internal asp.net 3.5 intranet application that includes only
one
| page.
|
| Based on requirements, each user can open multiple browser window and use
| the application.
|
| The problem is when users open the second browser window, the session ID
is
| same as the 1st browser. That means once a session is created by the 1st
| browser window, subsequent browsers use the same session. The only way
to
| have a new session ID is to close all of the browser windows and the open
a
| new one. Sessions are shared with the same type of browsers. (IE with IE,
FF
| with FF and Chrome with Chrome)
|
| I verified that by enabling the trace in the page.
|
| I went through the Microsoft kb article 899918
| (http://support.microsoft.com/kb/899918) and I guess this is the default
| behavior.
|
| How can I change this behavior? How can I have one unique session (and
| session ID) for each browser windows even they are opened simultaneously?
|
| Thank you.Max
|
|
|
 
Hi Max,

Did you resolve this issue?

This is Vince Xu from MSDN Managed Newsgroup support team, since I haven't
seen your reply after I last posted my reply. Please feel free to let me
know if there's anything else I can help. Thanks.

--
Sincerely,

Vince Xu

Microsoft Online Support
 
Back
Top