PDA

View Full Version : how can i get window login name?



cstan
08-21-2006, 12:45 PM
isnt possible 4 me to display the user window login name at internet explorer??

thanks...

Twey
08-21-2006, 03:58 PM
You can't.

mburt
08-21-2006, 04:49 PM
Define: user window login

cstan
08-22-2006, 12:51 AM
Define: user window login

not catch ur point..

isnt create at login function??..but this not i want to do it.

i got a server running in linux, n hundred plus computer connectted to. i just want display thier login name(login load OS) when thier access the intranet site. Intranet site was write by using PHP script.

isnt possible to do that?

cstan
08-22-2006, 12:52 AM
You can't.

javascript or php also cant??

mwinter
08-22-2006, 01:11 PM
[Obtaining OS login name using] javascript

I am not aware of any properties that expose the login name in any browser.



or php also cant??

Server-side PHP can have no knowledge of the state of a remote machine unless that machine sends the information to the server, and browsers do not transmit OS login names.

It would be possible to use ActiveX to obtain the login name, though I don't know if there are existing objects that provide such a feature. However, even if there were, that would severely limit the browsers a user could use.

What's wrong with a low-tech solution?



<label>Login name: <input name="login" value=""></label>

Mike