This would go in my index.cfm file, correct?

At 02:12 PM 3/19/2002 -0500, you wrote:
>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]
> > 
> 
>+------------------------------------------------------------------------------------+
> >
> >
> >
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Reply via email to