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.
How do I avoid this, please please help.
Thank you,
Bhaskar
--
"...fear is the path to the darkside, fear leads to anger, anger leads to
hate, hate leads to suffering..."
-- Master Yoda, Jedi Master
Mark Fitzpatrick - 29 Dec 2005 15:23 GMT
How are you accessing the name exactly? What variable or property are you
calling to retrieve it? Without knowing it's hard to tell exactly where the
error comes.
Mark Fitzpatrick
MVP - FrontPage
>I have a serious problem in .NET currently. I am hoping somebody out there
> can help me.
[quoted text clipped - 22 lines]
> hate, hate leads to suffering..."
> -- Master Yoda, Jedi Master
Bhaskar - 29 Dec 2005 18:16 GMT
Hi Mike,
I found the problem. I declared some shared public variables in
Global.asax.vb file. I was storing the logged-in user name in one of those
variables. I didn' t realise that the global variables are seen for *all*
users using that web application. That's why it appreared to be switiching
the users.
Later I moved those variables to session like Session("variable_name"). it
fixed the problem.
Thanks, Bhaskar

Signature
Bhaskar
"...fear is the path to the darkside, fear leads to anger, anger leads to
hate, hate leads to suffering..."
-- Master Yoda, Jedi Master
> How are you accessing the name exactly? What variable or property are you
> calling to retrieve it? Without knowing it's hard to tell exactly where the
[quoted text clipped - 29 lines]
> > hate, hate leads to suffering..."
> > -- Master Yoda, Jedi Master