Internal Structures


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."




Macromedia ColdFusion MX 7 Certified Developer Study Guide
Macromedia ColdFusion MX 7 Certified Developer Study Guide
ISBN: 0321330110
EAN: 2147483647
Year: 2004
Pages: 389
Authors: Ben Forta

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net