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

Home Posts Topics Members FAQ

Different same machine browser sessions intefering with each other with Forms Authentication and asp.net 2.0

Hi All. I found several threads about this specific issue here, but
could not find a solution to my specific problem. Most of the threads
suggested that there would be a difference between launching two
separate IE processes and starting two windows in the same IE process
(e.g. Control-N). However, I am having this problem with the two
separate IE processes. Here is my situation:

We have an asp.net 2.0 app that uses formsauthentication. There is a
login page where the user authenticates; once authenticated, we store
the user object in a session variable and display the correct
information for the given user. There is a logout link that ends up
running the following code:

System.Web.Security.FormsAuthentication.SignOut()

I can open up two separate IE processes on the same machine and log in
as two different users. Each user will see the data relevant to that
user. However, if I log out from one of the user pages, the other user
will also be logged out! When the other user hits refresh (either from
my app or using the IE button), the user will be redirected to the
login page. So somehow the logout of one user is interfering with the
other one. I think there are other symptoms of one session interfering
with the other, but this is the only one I can reproduce right now.

Does anyone have any idea how I can fix or work around this problem? I
tried messing with the local IE cookie settings and it didn't make a
difference. I also edited the web.config file to make the app run in
cookieless mode. It definitely turned out (e.g. I saw new IDs in the
URL) but the same problem occurred. I don't know what else to try at
this point. Thanks in advance.

thanks,
Bob

Dec 11 '06 #1
3 3537
most likely a bug in your code. you are probably storing session is a vb
module, causing it to be shared across requests

-- bruce (sqlwork.com)

bo************@qrm.com wrote:
Hi All. I found several threads about this specific issue here, but
could not find a solution to my specific problem. Most of the threads
suggested that there would be a difference between launching two
separate IE processes and starting two windows in the same IE process
(e.g. Control-N). However, I am having this problem with the two
separate IE processes. Here is my situation:

We have an asp.net 2.0 app that uses formsauthentication. There is a
login page where the user authenticates; once authenticated, we store
the user object in a session variable and display the correct
information for the given user. There is a logout link that ends up
running the following code:

System.Web.Security.FormsAuthentication.SignOut()

I can open up two separate IE processes on the same machine and log in
as two different users. Each user will see the data relevant to that
user. However, if I log out from one of the user pages, the other user
will also be logged out! When the other user hits refresh (either from
my app or using the IE button), the user will be redirected to the
login page. So somehow the logout of one user is interfering with the
other one. I think there are other symptoms of one session interfering
with the other, but this is the only one I can reproduce right now.

Does anyone have any idea how I can fix or work around this problem? I
tried messing with the local IE cookie settings and it didn't make a
difference. I also edited the web.config file to make the app run in
cookieless mode. It definitely turned out (e.g. I saw new IDs in the
URL) but the same problem occurred. I don't know what else to try at
this point. Thanks in advance.

thanks,
Bob
Dec 12 '06 #2

bruce barker wrote:
most likely a bug in your code. you are probably storing session is a vb
module, causing it to be shared across requests

-- bruce (sqlwork.com)
Hi Bruce. Thanks for your response. I'm not sure exactly what you mean
by "you are probably storing session is a vb module". We have a C# app.
First of all, we are using forms authentication, e.g. calls to
SetAuthCookie (and the logout call quoted above). How could this be a
bug in our code, the forms authentication is what's storing the state
itself, right? How could one forms authentication logout log out the
other one? Are you saying that maybe there's some web.config setting
wrong that controls forms authentication that we should change? We have
some other application session state that we store in the Session built
in usercontrol variable. Is this wrong?

I also replicated this in the .net 1.1 version of our app.

thanks,
Bob

Dec 12 '06 #3

bo************@qrm.com wrote:
bruce barker wrote:
most likely a bug in your code. you are probably storing session is a vb
module, causing it to be shared across requests

-- bruce (sqlwork.com)

Hi Bruce. Thanks for your response. I'm not sure exactly what you mean
by "you are probably storing session is a vb module". We have a C# app.
First of all, we are using forms authentication, e.g. calls to
SetAuthCookie (and the logout call quoted above). How could this be a
bug in our code, the forms authentication is what's storing the state
itself, right? How could one forms authentication logout log out the
other one? Are you saying that maybe there's some web.config setting
wrong that controls forms authentication that we should change? We have
some other application session state that we store in the Session built
in usercontrol variable. Is this wrong?

I also replicated this in the .net 1.1 version of our app.

thanks,
Bob
The problem ended up being that our call to SetAuthCookie passed in
true for the parameter to create a persistent cookie, I changed it to
false and it ended up working. Hope this helps someone else. Thanks
everyone.

Dec 12 '06 #4

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

Similar topics

22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
4
by: Ian | last post by:
Can anyone help I have a web server on the internet with and ASP.NET application on it, the application is set to allow Anonymous Access and Integrated Windows. The Web.config is set to use...
8
by: Bob Skutnick | last post by:
Greetings, I'm hoping someone has experienced a problem I'm having: I have an existing ASP application (working fine) that uses an SSL server certificate. My user community is made up of both...
5
by: Rob | last post by:
I have an ASP.NET application that uses forms-based authentication. A user wishes to be able to run multiple sessions of this application simultaneously from the user's client machine. The...
4
by: SB | last post by:
Hi I'm trying to get forms-based authentication to authenticate different users for differet pages, like this: <configuration> <location path="Member" allowOverride="true"> <system.web>...
0
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code...
3
by: Danny Crowell | last post by:
I have a question related to ASP.net sessions and static attributes. In an ASP.net application (MyApp) I have a class called Globals with a public static string called UserName. Will UserName be...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
3
by: rh.krish | last post by:
I have a typical ASP.NET 2.0 Forms authentication application which authenticates against Active Directory. I use non-persistent cookie so that the user is NOT remembered across browser sessions....
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
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?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.