If I'm understanding the question, you can just set a session variable at
login/authentication time indicating that the code has been run.
<cflock scope="SESSION" timeout="10" type="readonly">
<cfset loggedIn = isDefined("SESSION.loggedIn")>
<cflock>
<cfif NOT loggedIn>
<!--- run code --->
<cflock scope="SESSION" timeout="10" type="exclusive">
<cfset SESSION.loggedIn = 1>
</cflock>
</cfif>
HTH!
Sharon
----- Original Message -----
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 1:28 PM
Subject: Re: CFX custom tag
> Hi,
>
> I'm using the following custom tag to output the group(s) of specific
> users. This is in my index.cfm. How can
> I run the code below just once at login/authentication time. I'm using NT
> authentication for login purposes.
> I don't want to run this everytime the index.cfm page is loaded. Its too
> much overhead.
>
>
> <cfset auth = "#CGI.AUTH_USER#">
>
> <cfoutput>
> <CFX_Users ACTION="GROUPS" SCOPE="Local" USER="#auth#">
> </cfoutput>
>
> <table>
> <tr class="dirlinks">
> <th><b><u>Group(s)</u></b></th>
> </tr>
> <cfif IsDefined("Users")>
> <cfif IsQuery(Users)>
> <cfloop query="Users">
> <tr class="navlinks">
> <cfoutput>
> <td>#Group#</td>
> </cfoutput>
> </tr>
> </cfloop>
> </cfif>
> </cfif>
> </table>
>
>
>
>
> +-----------------------------------------------------------------------------------+
>
> Philip Humeniuk
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>+------------------------------------------------------------------------------------+
>
>
>
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists