Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Getting windows username variable
Name: Andrew Squibb Date: May 25, 2004 at 14:53:25 Pacific OS: n/a CPU/Ram: n/a
Comment:
I'm trying to develop something as part of an intranet, but before I get too far I need to get the name of the locally logged on user ( as in the environment variable %username% ) into a web page to be passed to an ASP page.
Being that ASP is Server Side Scripting, I would imagine the best way to achieve this would be to use java or similar on the client, which fetches the username, and the passes this to an ASP page.
Obviously this is only for use on an INTRAnet, in conjunction with a locally stored database.
Summary: thanx for te reply i did try that but still var name is null, it keeps returning null, how can i pass this username variable in checkuser.php into the javascript, document.open is wrng because i do no...
Summary: put a command in the web page to load the popup page with parameters that you set I use a link that calls the javascript function openVideoWin(); Link where filename is the name of the file width is t...
Summary: You don't need to "chuck it back in the session". Try just getting the session variable on the third page. Do it give you an error, or just not return a value? I had a typo in my previous post, i mean...