Macromedia ColdFusion MX 7 Certified Developer Study Guide

Due to their speed and versatility, structures are employed by ColdFusion for much of its internal data. The following variable prefixes are structures in ColdFusion:

  • APPLICATION

  • ATTRIBUTES

  • CFCATCH

  • CFERROR

  • CFFILE

  • CFFTP

  • CFHTTP

  • CGI

  • CLIENT

  • COOKIE

  • FORM

  • REQUEST

  • SERVER

  • SESSION

  • THIS

  • THISTAG

  • URL

  • VARIABLES

You may use <cfdump> to display the members of any structure. For example, to dump all CGI variables, you can use the following:

<cfdump var="#CGI#">

TIP

Knowing about structures translates into a stronger grasp of ColdFusion in general. You can flush SESSION variables, for example, by issuing StructClear(session).

SESSION variables were covered in Chapter 11, "Session State Management."

Категории