Currently logged on user

T

Tapiwa

Hello,

I am currently maintaing an old ASP 2.0 application and would like to know
the command to retain the currently logged on user (i.e. WINDOWS login). The
equivalent command in ASP.NET would be User_login =
HttpContext.Current.User.Identity.Name()

Thanks in advance.
 
M

Madhur

I think it is System.Environment.User (Don't remember exactly, but you
should be able to figure out.)
 
C

Cowboy \(Gregory A. Beamer\)

There is a classic ASP group: mcirosoft.public.inetserver.asp.general.

The logged in user in ASP is done off the Request object and is in the
server variables. I do not have the exact syntax to share.
 
M

Milosz Skalecki [MCAD]

Hi there,

Have a look at
Request.ServerVariables("LOGON_USER")
Request.ServerVariables("AUTH_USER")

HTH
 

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,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top