I usually do something like..
<CFIF Not IsDefined("Application.DSN") OR IsDefined("URL.Reset")>
<!--- Create all Application Vars --->
</CFIF>
So if I need to reset an app then just call the page and append a ?reset=1
HTH
-----Original Message-----
From: Dina Hess [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 13, 2003 18:45
To: CF-Talk
Subject: Refresh application-scoped variables
Hi all,
Can't seem to get my head around this one... How can I programmatically
refresh application-scoped variables whenever there's a change?
Right now, I'm doing something like this in Application.cfm:
<cfparam name="application.init" default="0">
<cfif not application.init>
use cfsavecontent to create application-scoped variables
set application.init to 1
</cfif>
What I want is some way to automatically reset application.init to 0
whenever these variables are modified.
Can someone point me in the right direction? Resources?
Thanks,
~Dina
http://www.dinahess.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4