Re: Web.HttpContext.Current.User.Identity.Name is blank
From: Teemu Keiski (joteke_at_aspalliance.com)
Date: 11/22/03
- Previous message: Paul Glavich: "Re: User.IsInRole not redirecting"
- In reply to: Dan Bart: "Web.HttpContext.Current.User.Identity.Name is blank"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 22 Nov 2003 15:03:00 +0200
And it is put to the Context on every request i.e user is athenticated with
forms auth and then in Application_AuthenticateRequest you populate the
HttpContext with the Principal? I am asking because HttpContext is recreated
for every request which means that user details must also.
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist "Dan Bart" <dblist2003@yahoo.com> wrote in message news:fa87ff30.0311191706.6105d46b@posting.google.com... > I am using an application which is a modification of IBuySpy Portal. > It is using Forms authentication. Users login and their name is added > to > Context > Then I use: > > Web.HttpContext.Current.User.Identity.Name > > to write audit trail as to what users do. Now recently on one of the > activities I noticed that the > > Web.HttpContext.Current.User.Identity.Name was blank. Which should not > have been possible? > > Can someone please tell me why this could have happened? And how I can > prevent this? > > > > Thanks, > > > > db
- Previous message: Paul Glavich: "Re: User.IsInRole not redirecting"
- In reply to: Dan Bart: "Web.HttpContext.Current.User.Identity.Name is blank"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|