Use CLIENT Variables Like SESSION Variables

CLIENT and SESSION variables are different. SESSION variables supports complex data types (like arrays and structures), but they are limited to a single machine. CLIENT variables can be shared in a clustered environment, but they do not support complex data types. So how do you get the best of both worlds? Use WDDX. Using the tag you can convert complex data into a string suitable for use with CLIENT variables. Just make sure to use to convert it back before subsequent use. (Applies to: ColdFusion 4 (or later))

Leave a Reply