Created
July 1, 2010 12:24
-
-
Save misterdai/459889 to your computer and use it in GitHub Desktop.
CF7/8 version of ApplicationStop()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="ApplicationStop" returntype="boolean" output="false"> | |
<cfif IsDefined('application')> | |
<cftry> | |
<!--- This is just in case there's no app scope but variables.application ---> | |
<cfset CreateObject('java', 'coldfusion.runtime.ApplicationScopeTracker').cleanUp(application) /> | |
<cfreturn true /> | |
<cfcatch type="any"></cfcatch> | |
</cftry> | |
</cfif> | |
<cfreturn false /> | |
</cffunction> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment