How do I do a server-side relocation?

ColdFusion provides a tag to handle relocating the user, <cflocation>. This tag returns header information to the browser that tells it to load a new URL. If you want to do a completely server-side relocation, you must use one of the underlining Java methods available in ColdFusion:

<cfset getPageContext().forward('url_here') />

This question was written by Hal Helms
It was last updated on February 19, 2006.

Categories

Miscellaneous

Comments

comments powered by Disqus