Log in

View Full Version : Username



Whitey
01-02-2008, 03:33 PM
Hi maybe you can help, been coming back and form from this site when ever I've been stuck with anything, but cant find anything on this so far.

I want my web page to show the NT Login name the person is currently on, I know its possible as one of the works web pages does it but it doesn't show me the code on how it does it.

so if its possible can someone let me know how this cool little code is done, I think it be java script but maybe not.

Thank for any help :)

BLiZZaRD
01-02-2008, 03:43 PM
Well, for starters I will tell you no, and don't do it. That would be personal information and not smiled upon.

Second you could only do it through .asp, and it would only work on those using Windows NT or later. Excluding Vista.

You could also just about only do it on an intranet, or work LAN (which is why you saw it at work).



'| ASP example.
Dim strLogon
strLogon = Request.ServerVariables("LOGON_USER")


Not that that works anymore, I had to google it for an example.

Whitey
01-02-2008, 03:47 PM
Cheers Ill give it a try it for work use only m8, only do off line pages, and just wanted this code for a welcome page.