|
-
Mar 26th, 2002, 07:37 AM
#1
Thread Starter
Hyperactive Member
Retrive info about identity of a user???
I need to retrive info about a user to beable to verify
that the user is who he/she is supposed to be.
I have a form that is send by CDONTS to a company mail.
What I would like to know about the user is default email adress perhaps computer name, and so on.
The retrivial of the information must be done with asp or javascript. Can it be done???
/Smirre
Visual Basic
C, C++
Java
Access
SQL Server
MCP, MCSD
-
Mar 26th, 2002, 08:14 AM
#2
Fanatic Member
Hi,
There are few ways you get details
1/ If you use NT Workstations you can use request.servervaribles("LOCAL_USER") to return the logged in user. It returns something like this
DOMAIN\john_smith
but you can use this code to get the username from it.
Code:
Mid(Request.ServerVariables("Logon_User"),InStr(Request.ServerVariables("Logon_User"),"\")+1)
also, you must also change permissions on the file(s) using IIS admin console and turn on NT Challenge Response and turn off Anomymous Login.
2/ You can't get the computers login name as its a great security risk but you could try this software but I couldn't get it to work.
http://www.pstruh.cz/help/tcpip/
3/ If your users use static IP addresses you could use request.servervariables("REMOTE_ADDR") and compare it to a database.
Heres a list of Environment (Server) Varables you might find useful
http://www.atomicdesigns.net/adime/perl/lists/env.html
Hope this helps
-
Mar 26th, 2002, 09:59 AM
#3
Member
Strangely enough, I have almost exactly the same problem, except all I need is the users email address. I already use there username throughout the site but would like to send mails to people without having to store there email addresses in a db (and then chek it against a username).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|