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