The scope is to check local or remote accounts.

Is there a way to have some code run the first time the index.cfm is loaded?

index.cfm
-------------

<cfif if this is the first time loading index.cfm run code below

         <CFX...
<cfelse>
</cfif>

At 12:30 PM 3/19/2002 -0600, you wrote:
>I've never used that tag before, but since they give you a scope attribute,
>I assume that means that it will place the result of that CFX into the
>specified scope. Set it to a persistent variable scope (client or session).
>Then test for the existence of that variable--if it doesnt exist, run the
>code, if it does, dont run it.
>
>Jeremy
>
>-----Original Message-----
>From: phumes1 [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, March 19, 2002 12:28 PM
>To: [EMAIL PROTECTED]
>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 email server is running an evaluation copy of the MailShield anti-
>spam software. Please contact your email administrator if you have any
>questions about this message. MailShield product info: www.mailshield.com
>
>-----------------------------------------------
>To post, send email to [EMAIL PROTECTED]
>To subscribe / unsubscribe: http://www.dfwcfug.org
>
>-------------------------------------------------------------------------
>This email server is running an evaluation copy of the MailShield anti-
>spam software. Please contact your email administrator if you have any
>questions about this message. MailShield product info: www.mailshield.com
>
>-----------------------------------------------
>To post, send email to [EMAIL PROTECTED]
>To subscribe / unsubscribe: http://www.dfwcfug.org


+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to