Difference between HttpContext.Current.User.Identity and identity Impersonation

G

Giovanni Bassi

Hello Group,

I using impersonation on my web app. I am explicitely setting the User with
the identity element in the web.config like this:
<identity impersonate="true" userName="MyUsr" password="MyPass" />
But if I ask for HttpContext.Current.User.Identity.Name it returns my
personal Login name, in the format DOMAIN\USERNAME.
Shouldn't they be the same? Shouldn't it return MACHINE\MyUsr?

Tks to all the replies,

Giovanni Bassi
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top