Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / December 2005

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bhaskar - 09 Dec 2005 23:25 GMT
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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.