Understanding ColdFusion's Client-State Management

ColdFusion provides its own weapon against statelessness, called client-state management.

When a user visits an application page that employs client-state management, ColdFusion will automatically generate two special variables to identify the user, CFID and CFTOKEN. Think of these as labels on a "drawer" of information specifically for a particular user. When a user has an assigned CFID and CFTOKEN, any template page in the application can either add information to the user's drawer by referencing those two variables, or read information already in the drawer, also by referring to CFID and CFTOKEN.

Note

By default, ColdFusion saves a user's "drawer" in the system registry, but it can also be ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.