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

Discussion in 'ASP .Net' started by Giovanni Bassi, Oct 20, 2003.

  1. 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
     
    Giovanni Bassi, Oct 20, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan Bart
    Replies:
    4
    Views:
    27,846
    Andrea D'Onofrio [MSFT]
    Dec 18, 2003
  2. nalbayo
    Replies:
    2
    Views:
    5,507
    Bruce Barker
    Nov 11, 2005
  3. sripathi
    Replies:
    0
    Views:
    1,247
    sripathi
    Dec 31, 2009
  4. Replies:
    5
    Views:
    2,265
    Dominick Baier [DevelopMentor]
    Nov 8, 2005
  5. Tony

    Dim context As HttpContext = HttpContext.Current

    Tony, Mar 2, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    310
    Teemu Keiski
    Mar 3, 2004
Loading...

Share This Page