Utility Function: Redirect()
- October 28, 2008 5:30 AM
- ColdFusion, Utility Function
- Comments (0)
Another simple wrapper function, this one for <cflocation/>.
<cffunction name="Redirect" access="public" output="false" returntype="void">
<cfargument name="url" type="string" required="true" />
<cfargument name="addToken" type="boolean" required="false" default="false" />
<cflocation url="#arguments.url#" addtoken="#arguments.addToken#" />
<cfabort />
<cfreturn />
</cffunction>