Home All Groups Group Topic Archive Search About
Author
28 Nov 2007 5:49 PM
Anil Gupte
I have some very strange behavior in a web app that we created.  Lets say
Person A is logged in and then Person B logs in from a different computer in
different locations (they could even be different countries!) and Person A
starts to see pages customized for Person B!  Even Session variables like
username for Person B show up on Person A's screen.

What is going on? How can I fix it?

TIA,

Author
28 Nov 2007 6:27 PM
Peter Bromberg [C# MVP]
You have a different problem than "leaky sessions" as you describe it.
Sessions are based on a session cookie, which clearly will be different and
have a different sessionID in the situation you describe.

However, if you have static fields in your app, then yes, you could end up
seeing what you describe, because there is only ever one copy of the field's
data, and that would account for what you are seeing.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com



Show quote
"Anil Gupte" wrote:

> I have some very strange behavior in a web app that we created.  Lets say
> Person A is logged in and then Person B logs in from a different computer in
> different locations (they could even be different countries!) and Person A
> starts to see pages customized for Person B!  Even Session variables like
> username for Person B show up on Person A's screen.
>
> What is going on? How can I fix it?
>
> TIA,
> --
> Anil Gupte
> www.keeninc.net
> www.icinema.com
>
>
>
Author
28 Nov 2007 6:32 PM
Anil Gupte
What are static fields?

Show quote
"Peter Bromberg [C# MVP]" <pbromberg@yahoo.NoSpamMaam.com> wrote in message
news:54BB8732-975C-4403-ACAF-4CB20FB695B5@microsoft.com...
> You have a different problem than "leaky sessions" as you describe it.
> Sessions are based on a session cookie, which clearly will be different
> and
> have a different sessionID in the situation you describe.
>
> However, if you have static fields in your app, then yes, you could end up
> seeing what you describe, because there is only ever one copy of the
> field's
> data, and that would account for what you are seeing.
>
> --Peter
> "Inside every large program, there is a small program trying to get out."
> http://www.eggheadcafe.com
> http://petesbloggerama.blogspot.com
> http://www.blogmetafinder.com
>
>
>
> "Anil Gupte" wrote:
>
>> I have some very strange behavior in a web app that we created.  Lets say
>> Person A is logged in and then Person B logs in from a different computer
>> in
>> different locations (they could even be different countries!) and Person
>> A
>> starts to see pages customized for Person B!  Even Session variables like
>> username for Person B show up on Person A's screen.
>>
>> What is going on? How can I fix it?
>>
>> TIA,
>> --
>> Anil Gupte
>> www.keeninc.net
>> www.icinema.com
>>
>>
>>
Author
28 Nov 2007 9:17 PM
Peter Bromberg [C# MVP]
It's usually a lot faster to look it up yourself!
http://msdn2.microsoft.com/en-us/library/98f28cdx(VS.71).aspx

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com



Show quote
"Anil Gupte" wrote:

> What are static fields?
>
> --
> Anil Gupte
> www.keeninc.net
> www.icinema.com
>
> "Peter Bromberg [C# MVP]" <pbromberg@yahoo.NoSpamMaam.com> wrote in message
> news:54BB8732-975C-4403-ACAF-4CB20FB695B5@microsoft.com...
> > You have a different problem than "leaky sessions" as you describe it.
> > Sessions are based on a session cookie, which clearly will be different
> > and
> > have a different sessionID in the situation you describe.
> >
> > However, if you have static fields in your app, then yes, you could end up
> > seeing what you describe, because there is only ever one copy of the
> > field's
> > data, and that would account for what you are seeing.
> >
> > --Peter
> > "Inside every large program, there is a small program trying to get out."
> > http://www.eggheadcafe.com
> > http://petesbloggerama.blogspot.com
> > http://www.blogmetafinder.com
> >
> >
> >
> > "Anil Gupte" wrote:
> >
> >> I have some very strange behavior in a web app that we created.  Lets say
> >> Person A is logged in and then Person B logs in from a different computer
> >> in
> >> different locations (they could even be different countries!) and Person
> >> A
> >> starts to see pages customized for Person B!  Even Session variables like
> >> username for Person B show up on Person A's screen.
> >>
> >> What is going on? How can I fix it?
> >>
> >> TIA,
> >> --
> >> Anil Gupte
> >> www.keeninc.net
> >> www.icinema.com
> >>
> >>
> >>
>
>
>
Author
28 Nov 2007 6:31 PM
Nicholas Paldino [.NET/C# MVP]
Anil,

    This looks like a problem with your code most likely.  If there was a
problem like this in the session state in ASP.NET, I'm sure that it would
have been pointed out much sooner than this.

    Of course, without knowing ANYTHING about your app, it's impossible to
say.


--
          - Nicholas Paldino [.NET/C# MVP]
          - mvp@spam.guard.caspershouse.com

Show quote
"Anil Gupte" <anil-l***@icinema.com> wrote in message
news:uB64coeMIHA.2000@TK2MSFTNGP05.phx.gbl...
>I have some very strange behavior in a web app that we created.  Lets say
>Person A is logged in and then Person B logs in from a different computer
>in different locations (they could even be different countries!) and Person
>A starts to see pages customized for Person B!  Even Session variables like
>username for Person B show up on Person A's screen.
>
> What is going on? How can I fix it?
>
> TIA,
> --
> Anil Gupte
> www.keeninc.net
> www.icinema.com
>
>

AddThis Social Bookmark Button