User Name

G

Guest

I have been using ASP.NET to retrieve the logon name with the
User.Identity.Name property. I also have some old ASP pages as well. Is
there an way to retrieve this information in ASP (not ASP.Net) as well?

Thanks in advance for your assistance.
 
G

Guest

I have been using ASP.NET to retrieve the logon name with the
User.Identity.Name property. I also have some old ASP pages as well. Is
there an way to retrieve this information in ASP (not ASP.Net) as well?

Thanks in advance for your assistance.

What type of Authentication do you use? I suppose you want to get a
Windows logon name?

To use Windows Authentication, enable "Integrated Windows
Authentication" within IIS. Add to a web.config file an
<authentication> section and set the mode to "Windows".

<configuration>
<system.web>
<authentication mode="Windows" />
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</configuration>

Once it's done, you can access the logged-in username.

In ASP 3.0 it can be done using Request.ServerVariables("LOGON_USER")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top