I just moved to MX 6.1 from 6.0 (Linux). This code worked in 6.0.
For ease of movement between production and development environments I have
a switch above my CFAPPLICATION tag that sets the application name (I am
sometimes forced to develop on my production server) along with environment
specific path variables, etc. I have no idea if this is a poor practice, so
I welcome recommendations.
I will probably move my CFAPPLICATION tag above the CFSCRIPT block and name
the application with a literal value, but I wanted to see if anyone else has
run into this.
Ubqtous
Session is invalid
The error occurred in /home/www/[mysitedir]/a/Application.cfm: line 59
57 : }
58 : </cfscript>
59 : <cfapplication name="#request.applicationname#"sessionmanagement="Yes"
sessiontimeout="#createtimespan(0,0,45,0)#">
Code preceeding error line:
<cfscript>
switch ("Prod") {
case "Prod": {
// Application name
request.applicationname="[mysitesappname]";
// Set datasource name
request.acdatasource="[mydsn]";
[set other vars...]
break;
}
case "Dev": {
// Application name
request.applicationname="[mysitesappname]";
// Set datasource name
request.acdatasource="[mydsn]";
[set other vars...]
break;
}
}
</cfscript>
<cfapplication name="#request.applicationname#" sessionmanagement="Yes"
sessiontimeout="#createtimespan(0,0,45,0)#">
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4