View comments | RSS feed

Migrating from Application.cfm to Application.cfc

To migrate an existing application that uses Application.cfm to one that uses Application.cfc, do the following:


ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

Comments


dublin said on May 31, 2007 at 2:37 AM :
I found the APPLICATION scope good for database username, password and DSN. Other items like the Mapping to the coldfusion variables and email server variables I ended up putting in the REQUEST (onRequestStart) scope due to 'not defined problems' with the APPLICATION scope. Session variables transferred fine using the SESSION scope (onSessionStart) onError method worked fine so long as tweaked to prevent needless notifications. I'm not sure about the Server scope, as we're in a coldfusion component (Application.cfc) we're using THIS. as the prefix. I used it for server settings like SessionManagment, SessionTimout,setClientCookies etc but not for any variable that needs to be called explicitly by Coldfuion pages.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00001123.htm