Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 2nd, 2003, 11:48 AM
Registered User
 
Join Date: Sep 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default collecting logon

How can I collect the windows logon from the machine where a form is being completed and include it in the data set?
 
Old September 4th, 2003, 03:34 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

To read it from the client is difficult with standard security settings but this would work on low settings:
Code:
var oNet = new ActiveXObject("WScript.Network");
alert(oNet.UserName);
If you are using ASP and the client is authenticated you can use code on the server:
Code:
var sUserName = Request.ServerVariables("AUTH_USER");
There are similar methods using PHP, JSP etc.

--

Joe





Similar Threads
Thread Thread Starter Forum Replies Last Post
Collecting Free Source Script cyber_kaley20 Beginning PHP 0 July 28th, 2008 08:43 PM
Database logon dhoward Crystal Reports 0 February 11th, 2008 04:49 PM
Logon Failed! VannAustin BOOK: Professional Crystal Reports for VS.NET 0 March 3rd, 2005 05:13 AM
Getting all users logon mateenmohd Classic ASP Basics 2 February 5th, 2005 11:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.