Home All Groups Group Topic Archive Search About

.NET application switching users (user A is shown user B profile)

Author
10 Dec 2005 12:19 AM
Bhaskar
I have a serious problem in .NET currently. I am hoping somebody out there
can help me.

I have a ASP.NET application written in VB.NET and requires the user to log
in. I authenticate user using LDAP, so if the user id is active in our
company NT network he/she can log in with her/his user id/password.

Now first John Smith logs in, using the application, then there is a welcome
header that says 'Welcome John Smith'. Then Jane Jones logs in with her user
id/password, but she sees the welcome header as 'Welcome John Smith' !!! So,
here John smith's session is shared by Jane which is neither expected nor
wanted.

I wonder if it is proxy server doing this mischief.

How do I avoid this, please please help.

Thank you,
Bhaskar


--
Bhaskar

"...fear is the path to the darkside, fear leads to anger, anger leads to
hate, hate leads to suffering..."
-- Master Yoda, Jedi Master

Author
10 Dec 2005 1:29 AM
Bruce Barker
a coding error on your part. you are storing login info in a vb module, or a
shared (static) variable. these are shared acoss all page instances, you its
always the last value set.

-- bruce (sqlwork.com)


Show quote
"Bhaskar" <Bhas***@discussions.microsoft.com> wrote in message
news:77D874D4-AAEB-4E2B-9C3B-FE9A50DA2061@microsoft.com...
>I have a serious problem in .NET currently. I am hoping somebody out there
> can help me.
>
> I have a ASP.NET application written in VB.NET and requires the user to
> log
> in. I authenticate user using LDAP, so if the user id is active in our
> company NT network he/she can log in with her/his user id/password.
>
> Now first John Smith logs in, using the application, then there is a
> welcome
> header that says 'Welcome John Smith'. Then Jane Jones logs in with her
> user
> id/password, but she sees the welcome header as 'Welcome John Smith' !!!
> So,
> here John smith's session is shared by Jane which is neither expected nor
> wanted.
>
> I wonder if it is proxy server doing this mischief.
>
> How do I avoid this, please please help.
>
> Thank you,
> Bhaskar
>
>
> --
> Bhaskar
>
> "...fear is the path to the darkside, fear leads to anger, anger leads to
> hate, hate leads to suffering..."
> -- Master Yoda, Jedi Master
>

AddThis Social Bookmark Button