RE: Serious issue with HttpContext.Current.User.Identity.Name
From: Patrick.O.Ige (PatrickOIge_at_discussions.microsoft.com)
Date: 12/07/04
- Next message: VB Programmer: "Re: Login box popping up!"
- Previous message: Patrick.O.Ige: "RE: Validation Summary Message Box Not Displaying"
- In reply to: kiran_s_rao_at_hotmail.com: "Serious issue with HttpContext.Current.User.Identity.Name"
- Next in thread: Kiran_S_Rao: "Re: Serious issue with HttpContext.Current.User.Identity.Name"
- Reply: Kiran_S_Rao: "Re: Serious issue with HttpContext.Current.User.Identity.Name"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 7 Dec 2004 15:17:02 -0800
Hi Kiran..
Are you using Forms Authentication and validating against SQL Server?
Are u sure u aren;t using Windows Auth since u are calling :-
HttpContext.Current.User.Identity.Name
Pls Elaborate more..
Patrick
"kiran_s_rao@hotmail.com" wrote:
> 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?
>
>
- Next message: VB Programmer: "Re: Login box popping up!"
- Previous message: Patrick.O.Ige: "RE: Validation Summary Message Box Not Displaying"
- In reply to: kiran_s_rao_at_hotmail.com: "Serious issue with HttpContext.Current.User.Identity.Name"
- Next in thread: Kiran_S_Rao: "Re: Serious issue with HttpContext.Current.User.Identity.Name"
- Reply: Kiran_S_Rao: "Re: Serious issue with HttpContext.Current.User.Identity.Name"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|