CFAPPLICATION

Posted by: scoopseven 16 years, 5 months ago

Despite what CFMX 6.1 documentation says, I've recently learned that the CFAPPLICATION tag, located in application.cfm doesn't like ambiguity. The problem manifests itself by throwing a "NullPointerException at ColdFusion.runtime.clientScopeKey" error in the exception log. We have been specifying something like this for our CFAPPLICATION tag. <cfapplication name="myApp" sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,30,0)#" clientmanagement="Yes"> Because documentation states that if no "clientstorage" tag is specified in the cfapplication tag it will default to the setting specified in the client storage setting in the CF administrator section, which we have set to "Cookie". Unfortunately, for busy apps, this doesn't hold true. CF throws errors with the above cfapplication tag when the app gets busy enough, stating that it can't find the clientstorage variable value. So, for all your CFAPPLICATION tags in application.cfm, make sure you add the two additional variables below (clientstorage and setclientcookies) to remove any ambiguity. <cfapplication name="myApp" sessionmanagement="yes" sessiontimeout="#CreateTimeSpan(0,0,30,0)#" clientmanagement="yes" clientstorage="Cookie" setclientcookies="yes">

Currently unrated


Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom