On 5/10/01 1:59 AM Mark Ireland wrote:
> Could someone tell me how to load a structure into the request scope in the
> application.cfm
>
> once only when a user first visits a page. That is, check that the
> structure is there and dont rerun the query code if it is
>
> unless a change has been made to the database.
It sounds like you want to put the structure into a persistent scope, which
request is not. Use the application scope instead if it is global to all
users. If not, client or session scope.
<cfif isdefined("application.strFoo")>
<cflock type="exclusive" scope="application" name="strLock">
<cfset application.strFoo = structnew()>
<!--- etc --->
</cflock>
</cfif>
- Sean
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists