Skip to main content
Participant
June 28, 2006
Answered

Ger User Login?

I'm trying to set up a scheduled task on a pc that will run a query and email the results to the user that is currently logged into that pc. The network login name is the same as the email address (login name is JonesB, email adress is jonesb@ourdomain.org).
Is there a way to get the current user's login name?

Thanks!
Jack
This topic is closed to new replies. Start a new post to keep the conversation going.
primalx2003Correct answer
Inspiring
June 28, 2006
Are you accessing a db or what? One way is setup your application.cfm and setup the client and session management. Then once the user logins into the application set the client variables.

Say for instance, I login into the system using JonesB.

Once I am authenticate, you will set the following variables:

<cfset client.username = JonesB>
<cfset client.email = jonesb@ourdomain.org>

With this info, you can have access to the information throughout the application.

Hope this helps.

Sevor Klu

3 replies

Inspiring
June 28, 2006
CGI.AUTH_USER
Translate
primalx2003Correct answer
Inspiring
June 28, 2006
Are you accessing a db or what? One way is setup your application.cfm and setup the client and session management. Then once the user logins into the application set the client variables.

Say for instance, I login into the system using JonesB.

Once I am authenticate, you will set the following variables:

<cfset client.username = JonesB>
<cfset client.email = jonesb@ourdomain.org>

With this info, you can have access to the information throughout the application.

Hope this helps.

Sevor Klu
Translate
kazeejAuthor
Participant
June 28, 2006
Simple solution.
I tend to make things more complicated than they need to be...

Thanks!
Jack
Translate