HOME       >>       Programming

Capturing Username Of Computer using javascript, is it possible?


it01y2

I wondering if it is possible to try and make a java script to get the computer username and log it?

Notice from jlhaslip:
edit Topic title

apacheNewbie

I wondering if it is possible to try and make a java script to get the computer username and log it?

Notice from jlhaslip:
edit Topic title

With VBScript you can use WScript.Network object. The user must activate its ActiveX controls.
With normal javascript, I am sure it is not possible, otherwise, it could become a security issue

suberatu

I believe Java has some built-in limitations that make it very difficult (if not impossible) to actually do something like that. As apacheNewbie said, it could be a security breach and thus it is most likely not possible to implement using Java.


jlhaslip

Use phpinfo() to see all of the $_SERVER, $_ENV, and GLOBALS that are available on the Server. I doubt if the client's Computer Name is accessible via those arrays, and I believe there are restrictions against using javascript to find them, but I might be wrong...



VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.