VelvetMirror Posted May 3, 2011 Share Posted May 3, 2011 How can I get the windows domain name from the browser?Is it possible?I've been looking at the User Agent and the HTTP headers, but it's not clear to me how to do this. Any example out there I can check? Link to comment Share on other sites More sharing options...
thescientist Posted May 3, 2011 Share Posted May 3, 2011 do you mean getting the domain from the address bar?there the location object in javascript...http://www.w3schools.com/jsref/obj_location.asp Link to comment Share on other sites More sharing options...
VelvetMirror Posted May 3, 2011 Author Share Posted May 3, 2011 I need to get the Windows domain name from Internet Explorer using classic asp (I could try it in another way if with classic asp it's not possible).I need to do this in order to insert the domain name into a database row.So again, in summary, I need to retrieve the Windows computer domain name from the Internet Explorer that is accessing to a particular webpage.It seems the link you provided talks about retrieving information from an URL, but I don't want to do that. I hope I explained myself better this time, thanks anyway. Link to comment Share on other sites More sharing options...
thescientist Posted May 3, 2011 Share Posted May 3, 2011 In that case, it's not possible for javascript to access the local file system, and I don't think the browser maintains any of that information, except for the OS type the browser is running on. Link to comment Share on other sites More sharing options...
VelvetMirror Posted May 5, 2011 Author Share Posted May 5, 2011 In case anyone happens to get the same problem, here is the solution I've implemented. You have to activate Integrated Windows Authentication in IIS: http://en.wikipedia.org/wiki/Integrated_Wi..._Authentication.You can read here how to do it: http://www.microsoft.com/technet/prodtechn...e.mspx?mfr=trueAfter that you can use: In Classic ASP Request.ServerVariables ("AUTH_USER") or Request.ServerVariables ("LOGON_USER") Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.