K
kiran_s_rao
I have a serious issue that seems to be intermittent with
User.Identity.Name.
In an environment where about 100+ users are logging on to a site with
forms authentication, calling HttpContext.Current.User.Identity.Name
returns the correctly logged on user.
However, 10% of the time (I'm guessing under stress conditions or
simulataneous requests), the wrong user info is being returned.
The logic of this app:
1) User enters username/pass
2) Info is looked up via SQL DB call
3) If match, user is authenticated via
FormsAuthentication.RedirectFromLoginPage(username, True)
4) On all the pages the user visits, his/her info is shown via a call
to HttpContext.Current.User.Identity.Name
This works almost all the time. Any ideas why it might be failing from
time to time?
User.Identity.Name.
In an environment where about 100+ users are logging on to a site with
forms authentication, calling HttpContext.Current.User.Identity.Name
returns the correctly logged on user.
However, 10% of the time (I'm guessing under stress conditions or
simulataneous requests), the wrong user info is being returned.
The logic of this app:
1) User enters username/pass
2) Info is looked up via SQL DB call
3) If match, user is authenticated via
FormsAuthentication.RedirectFromLoginPage(username, True)
4) On all the pages the user visits, his/her info is shown via a call
to HttpContext.Current.User.Identity.Name
This works almost all the time. Any ideas why it might be failing from
time to time?