Using Client Variables Without Requiring Cookies

Above, you learned that ColdFusion maintains the association between a browser and its client variables by storing a CFID cookie on the browser machine. That would seem to imply that client variables won’t work if a browser doesn’t support cookies or has had them disabled. Don’t worry; all isn’t completely lost.

Actually, ColdFusion normally sets two cookies with which to track client variables: the cfid value already mentioned and a randomly generated cftoken value. Think of cfid and cftoken as being similar to a username and password, respectively. Only if the cfid and cftoken are both valid will ColdFusion be capable of successfully looking up the appropriate client variables. If the browser ...

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.