PDA

View Full Version : HTML/JS get client username?


Crikey!
23-07-2004, 01:12
Is it possible to retrieve the client username from a web page using HTML/Javascript?

GreyJackal
23-07-2004, 01:36
As in the Windows (for example) log on name? I don't believe so, no.

Closest you could get, I believe, would be with PHP or similar using a lookup against the IP address - that obviously assumes that a) it's an internal application and b) you're not using DHCP and can maintain said database.

(btw did you get my email about emigration?)

Crikey!
23-07-2004, 01:54
As in the Windows (for example) log on name? I don't believe so, no.

Closest you could get, I believe, would be with PHP or similar using a lookup against the IP address - that obviously assumes that a) it's an internal application and b) you're not using DHCP and can maintain said database.

(btw did you get my email about emigration?)

i have the IP address available to me, so i think that may well be the best i could do.

i did get it, i've been flat out at work - in early home v. late most days. - i'll try and get a look at it this w'end.

GreyJackal
23-07-2004, 02:03
i have the IP address available to me, so i think that may well be the best i could do.

i did get it, i've been flat out at work - in early home v. late most days. - i'll try and get a look at it this w'end.

No worries - just checking my over enthusiastic anti-spam app wasn't directing your domain to the bin :)

Actually, DHCP wouldn't be a problem if you can read from your DHCP server and the machine names are sensible.

HaloMan
23-07-2004, 03:43
This maybe? (http://www.devguru.com/Technologies/wsh/quickref/wshnetwork_UserName.html)

Any help?