Click to See Complete Forum and Search --> : How to identify Windows userid?
scaiferw
11-03-2005, 08:03 AM
I'm doing some work on a corporate server (Win2k3), and would like to know if there's any way to catch the windows login userid of the user for a session.
Can anyone tell me how to do this?
Thanks,
Rob
LiLcRaZyFuZzY
11-03-2005, 08:47 AM
i believe you can't in php, but looks like it's possible in java http://forum.java.sun.com/thread.jspa?threadID=668707&messageID=3914507
ShrineDesigns
11-03-2005, 03:04 PM
on the server the username is in the $_ENV variable, i know on win 2k it is $_ENV['USERNAME'] use <?php phpinfo(); ?> or <?php print_r($_ENV); ?>
someone asked this question a few days ago, as far as i know it is not possible to get the username of a clients system (unless it is for some reason being sent through the headers or something)