CurrentContext with forms auth

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
 
G

Guest

Forms user that was authenticated from your custom database, unless you are
doing Forms Auth against the Active Directory store.

Peter
 
S

Smokey Grindle

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?
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top