getting windows username with javascript

后端 未结 3 653
天涯浪人
天涯浪人 2021-01-15 13:18

I have a site which is built in ASP.net and C#. Let\'s call it webapp. it uses a Form system to log on into it, and cannot be changed easliy.

I got a request to chan

3条回答
  •  不要未来只要你来
    2021-01-15 13:43

    The solution I found for getting the username sent to the server was:

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

    After enabled Windows Authentication Mode in IIS.

提交回复
热议问题