Determining the logged-on user from ASP

If you're using Basic or NT Challenge/Response security for access to 
your Web site, you can programmatically determine which user is 
accessing a page at any given time. To do so, simply interrogate the 
value of the following:

request.serverVariables("LOGON_USER")

Note that, by definition, you'll simply get back an empty string if 
you're using anonymous security on your Web site.

You might also like...

Comments

ElementK Journals

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There's no test like production” - Anon