Variable Lookup Order

When you don't prefix variables, if more than one variable with the same name exists, ColdFusion evaluates which variable type to use in this order:

  1. Query result variables
  2. Local variables
  3. CGI variables
  4. URL variables
  5. Form variables
  6. Cookie variables