Topic awaiting preservation: getting username with ASP |
|
---|---|
Author | Thread |
Bipolar (III) Inmate From: KY |
posted 11-21-2002 19:24
Is it possible to get the username of the person logged on the computer with ASP? I know I can get the IP and the broswer info. I really need to get the username |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-21-2002 20:06
From a webpage? nuh uh |
Bipolar (III) Inmate From: London, UK |
posted 11-22-2002 13:21
The only way you can do that is to force user authentication on your site. If it's ASP, I assume you're using some version of IIS, which will allow you to set authentication on part or all of the site. IIRC it's usually an NT/2K/XP user account that needs to log on, and you can use normal file permissions to control what they can see, if you want to go that far. |
Bipolar (III) Inmate From: KY |
posted 11-22-2002 16:56
Figured it wasn't. code: <script Language="VBScript">
|
Bipolar (III) Inmate From: London, UK |
posted 11-25-2002 15:52
What you just tried to do was get your browser to run asp code. That's not going to work, as you found out. If this is on a public web server then you'll have to come up with some other way of authenticating users, be it through sessions and logins, password protected directories or whatever. |