ColdFusion Scopes & Order of Precedence

December 13th, 2007

cf8logo.jpgIf you do not specify the scope of the variable, according to the docs, CF will search for it in the following order (this is called the order of precedence):

  1. Local variables
  2. cfquery
  3. CGI
  4. File
  5. URL
  6. Form
  7. Cookie
  8. Client

Other scopes always need to be scoped:

  • Server
  • Application
  • Session
  • Request
  • Attributes
  • Error

Leave a Reply

Spam protection by WP Captcha-Free