Application.,cfc and changes in this tag
Posted on 2011-02-19
i have defined the application.cfc in my website and used the cfscript> tag to define the settings using the this tag like
this.name = "Test";
this.applicationTimeout = createTimeSpan(0,1,0,0);
this.loginstorage = "session" ;
this.sessionmanagement = "yes";
this.sessiontimeout = createTimeSpan(0,0,20,0);
this.setClientCookies = "yes";
this.setDomainCookies = "yes";
this.scriptProtect = "all";
if left(server.ColdFusion.ProductVersion,1) GT 8
this.googlemapkey = "blah blah blah";
now apparently it is throwing error,
Invalid CFML construct found on line 12 at column 15.
ColdFusion was looking at the following text:
The CFML compiler was processing:
* A script statement beginning with if on line 12, column 12.
* A cfscript tag beginning on line 2, column 2.
i was sure that it will throw an error but how can i do this in good way