Re: Web.HttpContext.Current.User.Identity.Name is blank
From: Dan Bart (dblist2003_at_yahoo.com)
Date: 12/10/03
- Next message: Mikemike: "RE: unable to access microsoft sites..."
- Previous message: Mike Moore [MSFT]: "RE: Error page that is not in "Forms Auth""
- Next in thread: Pete: "Re: Web.HttpContext.Current.User.Identity.Name is blank"
- Maybe reply: Pete: "Re: Web.HttpContext.Current.User.Identity.Name is blank"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 9 Dec 2003 16:07:45 -0800
Yes it is put in the Context on every request in Global.asax.vb
Thanks,
db
> 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
- Next message: Mikemike: "RE: unable to access microsoft sites..."
- Previous message: Mike Moore [MSFT]: "RE: Error page that is not in "Forms Auth""
- Next in thread: Pete: "Re: Web.HttpContext.Current.User.Identity.Name is blank"
- Maybe reply: Pete: "Re: Web.HttpContext.Current.User.Identity.Name is blank"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|