>Has anyone received the message "Session is invalid" on his CFMX app?

I just moved to MX 6.1 (Linux) from 6.0 (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)#">

I have since changed to a static cfapplication tag (no variable for the name) and 
disabled J2EE session variables (I didn't use JSESSIONID and don't use CFID/CFTOKEN in 
my code).

I have not been able to recreate this error. It initially occured when I left my 
computer for an extended period of time (~1 hour) after having successfully logged 
into the application.

~Ubqtous
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to