To handle such scenarios in my applications, my OnApplicationStart() method
just turns around and calls the custom function (inside Application.cfc)
called "InitApplication()"... Then when I make changes to my application, I
just call that method directly and it re-initializes the application without
actually ending it's session.
Then you can send a flag in URLs.
<cffunction name="OnApplicationStart">
<cfset InitApplication() />
</cffunction>
<cffunction name="OnRequestStart">
<cfparam name="URL.InitApplication" type="numeric" default="0" />
<cfif URL.InitApplication>
<cfset InitApplication() />
</cfif>
</cffunction>
Not sure if it is the best way to go... But it works great for my purposes.
.......................
Ben Nadel
www.bennadel.com
-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 25, 2006 3:37 PM
To: CF-Talk
Subject: RE: Programmically ending a CF application?
What are you trying to accomplish in the long run? Maybe there is a
different route to take?
During development, when changes have been made to code in the
OnApplicationStart to end the current application so that the new code will
run with the next request.
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
---------
| 1 | |
--------- Binary Soduko
| | |
---------
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any attachments is for the
sole use of the intended
recipient(s) and may contain confidential and privileged information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender and delete any
copies of this message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247674
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4