Re: Re: determine logged in user
| From: | Red Wingate | Date: | Tue, 16 Mar 2004 21:48:02 +0000 |
| Subject: | Re: Re: determine logged in user | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180606@lists.php.net to get a copy of this message | ||
One last thing, check the PHP-DEV Archives someone send a quite nice
trick on how to do that about 1-2 months ago.
Bye,
red
Ashley wrote:
Thanks for the info guys. I guess that I will just make a login screen of some sort to accomplish what I need. Thanks again, Ashley Red Wingate wrote:Seen some interesting ways on doing this on the client. Basicly you run a bash script ( on autostart for example ) and pass the login-info which are saved in the enviroment to the server to make sure the user is known by the server as well. Another way could be to check wether the REMOTE_ADDR has authentificated to the samba-server within a spec. timespan. Greets, red [snip][snip]Can PHP determine the username of the person currently logged into a Windows 2K machine?On the machine running the client (web browser) or the machine running the server? On the client, no. At least, I hope not. On the server... ? Maybe. Maybe if you ran a login script that wrote the username to a file that PHP read. I can't really think of a clean way of doing it.[snip]