473,804 Members | 2,946 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to collect the UserID, Client Machine Name, IP address info?

Kam
In my asp server page, I would like to collect the USERID, Client Machine
Name, IP Address information and passing it back to the server for validation
control.

How can I achieve it in Jscript?
Aug 4 '05 #1
3 2439
You only have access to what is offered in the servervariables collection.

Do yourself a favor and run this script:

<%
For Each x In Request.ServerV ariables
Response.Write "<hr>" & x & "<br>" & Request.ServerV ariables(x)
Next
%>

"Kam" <Ka*@discussion s.microsoft.com > wrote in message
news:EF******** *************** ***********@mic rosoft.com...
In my asp server page, I would like to collect the USERID, Client Machine
Name, IP Address information and passing it back to the server for
validation
control.

How can I achieve it in Jscript?

Aug 4 '05 #2
Kam
all the variables are empty.
I think you want me to use LOGON_USER.
but none of the server variable are non empty

pls help

"Aaron Bertrand [SQL Server MVP]" wrote:
You only have access to what is offered in the servervariables collection.

Do yourself a favor and run this script:

<%
For Each x In Request.ServerV ariables
Response.Write "<hr>" & x & "<br>" & Request.ServerV ariables(x)
Next
%>

"Kam" <Ka*@discussion s.microsoft.com > wrote in message
news:EF******** *************** ***********@mic rosoft.com...
In my asp server page, I would like to collect the USERID, Client Machine
Name, IP Address information and passing it back to the server for
validation
control.

How can I achieve it in Jscript?


Aug 4 '05 #3
> all the variables are empty.

Every single ServerVariable value is empty? I find this very hard to
believe.
I think you want me to use LOGON_USER.


If you need LOGON_USER, you need to disable anonymous access on the web site
and require windows authentication.

A
Aug 5 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4164
by: JezB | last post by:
Any way I can get at a unique "Client ID" within server code ? I'm writing some auditing and I want to record which particular client machine initiated a request, for example. I imagine in an internet environment the only unique client ID is the IP address, can I get at this? In an intranet environment I'd prefer to get the unique client machine name, as known to the network (and possibly network user ID name while we are about it!).
3
2622
by: Sangeetha Nagaraj | last post by:
Hi Pals, I am a starter to web services. I have a requirement. I want to develop a web service, which accepts userid and password from the user and checks it with the MS Access database. If the userid and password found correct in the database, it must return the address of the person in the XML format. Can any one please give me the code, so that I can modify it to fit to my project. Thanks in Advance..
4
6099
by: Goh | last post by:
Hi, I would like to know how can we implement a web page that intelligent enough to unique identify that pc have been visit before without any cookies and login user require. I have try implement this by MAC address. When user browser the web site I sometime can get user pc MAC and sometime no. Why this type of implementation are so not consistency? Does any
6
3511
by: libero familymac news | last post by:
Hy! sorry for my bad english... i'm developping web forms in c# and i have to take the client machine name I try with server variables ( request.servervariables ) and with request.hostname() hostaddress() dosn't work because ( i think ) in lan we don't have a dns server then
2
3055
by: WhatHappend | last post by:
I have converted a .Net 1.0 application to .Net 2.0 and the web service invocations have delay of around 10seconds on each intial access. After the first access subsequent access are fast (After a whild of inactivity the next access will be slow agian). Changing the client to static IP address instead of DHCP makes the initial access about 1 second which is fine. Monitoring the network of the client computer the cleint is sending out 2...
0
1109
by: just.an.imbecile | last post by:
Hello all, Here is a quick version of my problem. I have a website that consists of 4 ASPX pages. Every field is required by default, but on pages 1 and 2, there are several fields that can be disabled based on answers to questions. (Ex. If they have been at their current address for over two years, then they are not required to fill out the previous address information). It all works great, except that when I go back to page 1 from page...
2
522
by: willyd61 | last post by:
Hello Everyone! Newbie here... I can't configure any remote clients to connect to my DB2 server, I am able to run and connect local from the server, but if I try to connect with a user and specify password it fails with the dreaded SQL30082N. I have checked all parameters, there is the servicename registered in /etc/services the dbm cfg is set (pasted below). this is a Workgroup Edition, I have tried everything, also note that I can only...
2
4105
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set server machine IP for client and server) please guide me? server : #include <winsock2.h> #include <iostream> #include <stdio.h> #include <string.h> #include <windows.h> #pragma comment(lib, "ws2_32");
4
1652
by: sjohnson1984 | last post by:
Hello all, I have a form which is generated using a database query - the recordset is filled with agent details, login time and the like, and there are as many rows in the table as records in the set (plus table header). My problem is that I do not know how to pass the details of each record to an array session variable, once the form is submitted, and subsequently write all of this info to a dB. I have no problem doing this when there...
0
9704
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9571
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.