Skip to content

Instantly share code, notes, and snippets.

@misterdai
Created July 1, 2010 12:24
Show Gist options
  • Save misterdai/459889 to your computer and use it in GitHub Desktop.
Save misterdai/459889 to your computer and use it in GitHub Desktop.
CF7/8 version of ApplicationStop()
<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