ColdFusion Scopes & Order of Precedence
December 13th, 2007
If 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):
- Local variables
- cfquery
- CGI
- File
- URL
- Form
- Cookie
- Client
Other scopes always need to be scoped:
- Server
- Application
- Session
- Request
- Attributes
- Error