Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
How Do Client Variables Work?
Client variables work like this:
The first time a particular user visits your site, ColdFusion generates a unique ID number to identify the user’s browser.
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.
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.
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access