You can avoid this whole issue by using the Request scope for variables
which are set in application.cfm instead of application or session
variables.  Request variables aren't shared between threads, so they don't
need to be locked; and they are available for the entire page request,
including any nested custom tags.

> -----Original Message-----
> From: Peter Theobald [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 09, 2000 10:11 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Application.cfm in a CFMODULE
>
>
> <html>
> <font size=3>Since CFMODULE doesn't load Application.cfm, I can't use any
> of my Application.cfm settings in a module. For example, inside a module
> I cant use Session variables without this:<br>
> <br>
> CFLock cannot be used to lock the application or session shared scopes
> without these scopes being established through the use of the
> CFApplication tag. You must use CFApplication and specify an application
> name to use the application scope. If you want to use the session scope
> you need to enable session management as well. Application and/or Session
> variables must also be enabled in the ColdFusion Administrator.<br>
> <br>
> Should I &lt;CFINCLUDE TEMPLATE=&quot;Application.cfm&quot;&gt; to get
> all the settings? If this is something I will need in all my MODULEs, why
> doesn't CF just load it for MODULES?<br>
> <br>
> </font><br>
>
> <br>
> -<font
> size=3>-----------------------------------------------------------
> ---------------<br>
> Peter Theobald, Chief Technology Officer<br>
> LiquidStreaming
> <a href="http://www.liquidstreaming.com/"
> eudora="autourl">http://www.liquidstreaming.com</a><br>
> [EMAIL PROTECTED]<br>
> Phone 1.212.545.1232 Fax 1.212.679.8032<br>
> </font></html>
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to