capture windows username in asp.net mvc request -
I have an intranet app asp.net mvc site anyway due to a full login system on the site, The login is to capture. I do not need to allow, but I want to do some logging on the server to track requests, etc. .
If you use HttpContext.Current.User.Identity.Name
You can use the site to set up. Many browsers will pass the username transparently.
Comments
Post a Comment