开发者

windows authentication in ASP.Net

开发者 https://www.devze.com 2023-01-31 09:25 出处:网络
So, i have my virtual directory with Anonymous Access disable开发者_JAVA百科d. I allow users to login to my app through the windows server login.

So, i have my virtual directory with Anonymous Access disable开发者_JAVA百科d. I allow users to login to my app through the windows server login. I wish to know how i can, through the code, capture the username that is logging in.

Is this possible?

Thanks


HttpRequest.Current.User.Identity.Name or simply User.Identity.Name if you are in a Page should give you the name of the user currently logged in.

0

精彩评论

暂无评论...
验证码 换一张
取 消