Can I say that without knowing how this tag actually works, but by the
looks of it, it returns the query users. Maybe copying this to an
application scope, and setting an application variable would save a lot
of time when it is run rather than using the session scope.


-----Original Message-----
From: Sharon Diorio [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 20 March 2002 6:13 AM
To: CF-Talk
Subject: Re: CFX custom tag

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


______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to