Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Leaky Sessions?!!!

0 views
Skip to first unread message

Anil Gupte

unread,
Nov 28, 2007, 12:49:55 PM11/28/07
to
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


Peter Bromberg [C# MVP]

unread,
Nov 28, 2007, 1:27:00 PM11/28/07
to
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

Nicholas Paldino [.NET/C# MVP]

unread,
Nov 28, 2007, 1:31:34 PM11/28/07
to
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]
- m...@spam.guard.caspershouse.com

"Anil Gupte" <anil...@icinema.com> wrote in message
news:uB64coeM...@TK2MSFTNGP05.phx.gbl...

Anil Gupte

unread,
Nov 28, 2007, 1:32:16 PM11/28/07
to
What are static fields?

"Peter Bromberg [C# MVP]" <pbro...@yahoo.NoSpamMaam.com> wrote in message
news:54BB8732-975C-4403...@microsoft.com...

Peter Bromberg [C# MVP]

unread,
Nov 28, 2007, 4:17:02 PM11/28/07
to
It's usually a lot faster to look it up yourself!
http://msdn2.microsoft.com/en-us/library/98f28cdx(VS.71).aspx

Anil Gupte

unread,
Dec 2, 2007, 4:34:50 AM12/2/07
to
What are static fields?

"Peter Bromberg [C# MVP]" <pbro...@yahoo.NoSpamMaam.com> wrote in message
news:54BB8732-975C-4403...@microsoft.com...

Christof Nordiek

unread,
Dec 3, 2007, 9:27:33 AM12/3/07
to
How do you store the session variables?

Christof

"Anil Gupte" <anil...@icinema.com> schrieb im Newsbeitrag
news:uB64coeM...@TK2MSFTNGP05.phx.gbl...

0 new messages