O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How Do Client Variables Work?

Client variables work like this:

  1. The first time a particular user visits your site, ColdFusion generates a unique ID number to identify the user’s browser.

  2. ColdFusion sets this ID number as a cookie called CFID on the user’s browser. From that point on, the browser identifies itself to ColdFusion by presenting this ID.

  3. When you set a client variable in your code, ColdFusion stores the value for you on the server side, without sending anything to the browser machine. It stores the CFID number along with the variable, to keep them associated internally.

  4. Later, when you access or output the variable, ColdFusion simply retrieves the value based on the variable name and the CFID number.

For the most part, this process is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required