Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
Using Client Variables
Client variables are similar to cookies, except that they are stored on the server, rather than on the client (browser) machine. In many situations, you can use the two almost interchangeably. You’re already familiar with cookies, so learning how to use client variables will be a snap. Instead of using the COOKIE prefix before a variable name, you simply use the CLIENT prefix.
Okay, there’s a little bit more to it than that, but not much.
Note
Before you can use the CLIENT prefix, you must enable ColdFusion’s Client Management feature. See the section “Enabling Client Variables,” later in this chapter.
Note
It’s worth noting that client variables can also be configured so that they are stored on the browser machine, if ...
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