Retrieving a domain UserName from the web page
Hi,
I am working on a campus network. I am trying to retrieve the username of the person using the page, everytime I try getting it I get an empty string. I am using this method:
Response.Write Request.ServerVariables("LOGON_USER")
I only get an empty string while using this method.
However when I try to get the remote address or the IP address I am successful using a similar procedure
Response.Write Request.ServerVariables("REMOTE_ADDR")
I dont know why i get an empty string for the User name in the domain.
can U please help
Thanks
|