Instead of using server-side redirection with thecflocation
tag, consider using one of several methods for client-side redirection.
Client-side redirection allows the CFID and CFToken cookies assigned with the first request to be passed on to the browser. After the browser has received the results of the first request, it is instructed to request a second page from the server. The CFID and CFToken cookies it received from the first request will be passed along with the second request.
Some examples of client-side redirection are as follows:
- Use the HTML meta tag, as follows:
<meta http-equiv="Refresh" content="0;url=http://mysite.com/secondpage.cfm">
- Use two cfheader tags, as follows:
<CFHEADER STATUSCODE="302" STATUSTEXT="Object Temporarily Moved"><CFHEADER NAME="location" VALUE="http://mySite.com/secondpage.cfm">