I have been using a basic Application.cfc file (below) that stopped working when the server was upgraded from ColdFusion 11 to ColdFusion 2016. I have tried the following and several variations on it but cannot get it to work. This is what worked on ColdFusion F11 but won't work on ColdFusion 2016. I am stumped. What am I missing?
<cfcomponent>
<cfscript>
this.datasource = "myDSN";
this.sessionManagement = "Yes";
this.sessionTimeout = CreateTimeSpan(0,0,20,0);
this.setClientCookies = "Yes";
this.clientmanagement="Yes";
this.domain="www.mydomain.com";
</cfscript>
<cffunction name="onRequestStart">
<cfargument name="requesturi" required="true">
</cffunction>
<cftry>
<cfcatch type="database" >
<cflocation url="err_exception.cfm">
</cfcatch>
</cftry>
<cffunction name="onError" returnType="void" output="true">
<cfargument name="exception" required="true">
<cfargument name="eventname" type="string" required="true">
<cfset var errortext = "">
<cfsavecontent variable="errortext">
<cfoutput>
<strong>Template</strong>: http://#cgi.server_name##cgi.script_name#?#cgi.query_string#<br />
<strong>Error</strong>: #arguments.exception.message#<br />
</cfoutput>
</cfsavecontent>
<cfmail to="techsupport@suchandsuch.com" from="techsupport@suchandsuch.com" subject="From Local Srvr - Error at mydomain Website">
#errortext#
</cfmail>
<strong>Error Details:</strong>
<cfoutput>#errortext#</cfoutput>
</cffunction>
</cfcomponent>
AND A SIMPLE QUERY
<cfquery name="GetVendor">
select *
from empinfotbl
</cfquery>
<cfoutput query="GetVendor">
#LastName#, #FirstName#<br>
</cfoutput>
Error was:
ERR_TOO_MANY_REDIRECTS
and after clearing cache, indicates:
Error Executing database query: