How to get user name using Windows authentication in asp.net?

前端 未结 7 1845
抹茶落季
抹茶落季 2020-12-23 11:43

I want to get user name using Windows authentication

Actually I implemented \"Sign in as different user\",when click this button Windows security will appear there w

7条回答
  •  独厮守ぢ
    2020-12-23 12:28

    I think because of the below code you are not getting new credential

    string fullName = Request.ServerVariables["LOGON_USER"];
    

    You can try custom login page.

提交回复
热议问题