Ask a Question related to ASP.NET Security, Design and Development.
-
Michael Ames #1
HttpContext.Current.User vs. Thread.CurrentPrincipal
How are HttpConext.Current.User and Thread.CurrentPrincipal different?
It seems that they can be set differently in different places. Why would
one use one and not the other?
Thanks,
Michael
Michael Ames Guest
-
HttpContext.Current.User.IsInRole
Hi, I have a problem when I am using the HttpContext.Current.User.IsInRole... This is my code: if (HttpContext.Current.User.IsInRole("Admin... -
How secure is HttpContext.Current.User.Identity.Name ?
How secure it is to authorize access to an ASP.NET application based on the value of the HttpContext.Current.User.Identity.Name propery? I... -
creating custom HttpContext.Current.User.Identity
I've started getting into using forms authentication for asp.net apps with c#. From what i understand so far (limited) I like the way things work!... -
Web.HttpContext.Current.User.Identity.Name is blank
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... -
HttpContext.Current.User not available in the redirected page
I am trying to use Forms Authentication and Role-Based Security: I have two pages: login.aspx and Default.aspx. -------------------------- This is... -
Ram Sunkara [msft] #2
Re: HttpContext.Current.User vs. Thread.CurrentPrincipal
Use HttpConext.Current.User for all web (ASPX/ASMX) applications.
Use Thread.CurrentPrincipal for all other applications like winForms,
console and windows service applications.
ASP.NET support various authentication schemes in additions to windows
authentication.
Use How are HttpConext.Current.User for web application, more precisly
"Michael Ames" <michaelames@(remove)email.com> wrote in message
news:O6aD0wgqDHA.2216@TK2MSFTNGP12.phx.gbl...> How are HttpConext.Current.User and Thread.CurrentPrincipal different?
>
> It seems that they can be set differently in different places. Why would
> one use one and not the other?
>
> Thanks,
>
> Michael
>
>
Ram Sunkara [msft] Guest



Reply With Quote

