Last post Jan 10, 2017 03:01 AM by Cathy Zou
Jan 09, 2017 04:13 AM|wmec|LINK
Is there a way to detect/capture logon name (to the machine) of current user, from one Web page, once the user has located to that Web page?
Jan 09, 2017 10:40 AM|PatriceSc|LINK
My understanding is that you are looking at Windows authentication. See for example
Jan 10, 2017 03:01 AM|Cathy Zou|LINK
For we don’t know which authentication you used. So, there is the following two situation.
1. Window authentication
If you use windows authentication. You could use the following code;
WindowsIdentity identity = HttpContext.Current.Request.LogonUserIdentity;
and then you can get the information about the user like identity.Name.
Please note you need to have HttpContext for these code.
2. Form authentication
If you use Form authentication. please check the links below: