Discussion Locked

Identification in ASP

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello. I develop a site with ASP. I need to identifie the name of the PC which connects to the site. With the Server object, I can get his IP but this IP is not always the same because of the configuration of the local network. I would like to get the name of the computer or the name of the one who logs on but not his IP adress. Everyone uses Windows 95/98. Only the server is NT (IIS4, ASP2.0).
Thanks.

5 replies

by kirya

I think the only possible way to get this done is to make some type of authentication system (because normally users log on to the server anonymously). You can use cookies to store this information on user's computer - it allows to authenticate userjust 1 time (if one user works on one computer). If some stronger authentication required then you can use NT Authentication in IIS or something like asplogin(www.asplogin.com). If you'll use NTLM, then there will be some more items in Request.ServerVariables collection : 1. AUTH_TYPE - Indicates the authentication method used to access the page
2. AUTH_USER - the Windows NT account name of the user 3. LOGON_USER - if you require the user to log on to NT, contains the userid they used to logon with (this is typically blank when Anonymous access is allowed) 4. AUTH_PASSWORD - contains the password that was used to access the page

by cedric king

If you uses SSL, then you could use the Server Variable "CERT_SERIALNUMBER". If your system is a typical system i.e nothing extra installed, then the only thing you can identify your user will be the IP address only via "REMOTE_ADDR". You can try "REMOTE_HOST" or "REMOTE_USER" although I don't think it might work. Alternatively, you can make your user login prior to access the site, so that you will be able to identify the user. You can use cookies to identify the user too.
Hope I understand your problem and solve it.

This discussion is closed to new replies.