CurrentContext with forms auth

  • Thread starter Thread starter Smokey Grindle
  • Start date Start date
S

Smokey Grindle

I am using forms authentication with a custom user database... I was
wondering, when logging in using forms auth, does the
HttpContext.Current.User return the forms logged in user or the AD user that
is running the web process in that situation? I am assumeing the forms
logged in user
 
Forms user that was authenticated from your custom database, unless you are
doing Forms Auth against the Active Directory store.

Peter
 
nope, no ad, just against our custom user database.. so I can assume the
context will always be the forms logged in user, as long as there is no
impersination?
 
asp.net separated the authenticated user and the thread identity.
Current.User is the user name from authentication, and does not need to
match the request Identity.

-- bruce (sqlwork.com)
 
Back
Top