• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Ger User Login?

New Here ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

282

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jun 28, 2006 Jun 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

Votes

Translate

Translate
Explorer ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

LATEST
Simple solution.
I tend to make things more complicated than they need to be...

Thanks!
Jack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 28, 2006 Jun 28, 2006

Copy link to clipboard

Copied

CGI.AUTH_USER

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation