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

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.