Script for checking for mobile browser and redirect.
<cfscript>
// IS MOBILE BROWSER?
REQUEST.isMobile = CreateObject("component","lib.cfc.utils.DetectBrowser").init().isMobile(CGI.HTTP_USER_AGENT);
if (REQUEST.isMobile) {
location(url="/mobile/",addToken="false"); // redirect into the mobile section of the application.
}
</cfscript>