Utility Function: Redirect()

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>

 

Related Blog Entries

Comments

Jon in Chicago, July 2008

I'm Jon Hartmann and I'm a C# .Net developer by day, a ColdFusion guru by night, and all around Javascript fanatic. Stay right here to read my technical posts as I grapple with mysterious error messages, user interface design questions, and all things baffling and irksome about programming for the web. Learn more about me.

Post a job. Find one. authenticjobs.com

Interested in becoming a sponsor? Contact me.