NEWB: get username that is currently logged in to Windows workstation.
| From: | Aaron Kenney | Date: | Tue, 28 Feb 2006 21:10:03 +0000 |
| Subject: | NEWB: get username that is currently logged in to Windows workstation. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-26726@lists.php.net to get a copy of this message | ||
I am sorry but I am somewhat new to interfacing Windows through PHP.
What I am trying to do is to get the username (or otherwise unique
identifier) of the user that is currently logged into the local
Windows workstation, and then assign the username to a variable. Can
it be done?
Originally what I considered doing was, in ASP, obtain the username
and write it to a cookie. Then use PHP to parse the cookie to get the
username.
-Aaron