Re: How to Pass the Username which from Windows Login
| From: | J Wynia | Date: | Fri, 29 Mar 2002 16:38:22 +0000 |
| Subject: | Re: How to Pass the Username which from Windows Login | ||
| References: | 1 | Groups: | php.general php.windows |
| Request: | Send a blank email to php-general+get-90678@lists.php.net to get a copy of this message | ||
$network = new COM("WScript.Network");
$computername = $network->ComputerName;
$username = $network->UserName;
Password can't be grabbed for fairly obvious reasons.
"Jack" <jack@nedcor.com> wrote in message
news:20020325062554.44036.qmail@pb1.pair.com...
> Dear all
> I want to prevent user to make another login before they can browse the
> Intranet, so is there anyway that php can grep the username from the
windows
> Login or Domain Login?
> Which means if a user can login to the Windows NT, then he/she will have
the
> right to browse the Intranet!
>
> Thx a lot
> Jack
> jack@nedcor.com
>
>