Can I use the Client variable scope to store complex data types (like structures or query result sets)?
No and yes (isn’t that helpful?). As for the no part, the Client scope can only be used for storing simple values (strings or numbers). However, there is a way around this. You can take a complex data type and turn it into a string using WDDX. To demonstrate this idea, Listing 2 shows three separate CF pages. The full details of WDDX are too great to expound in this column, but the general concept is fairly easy. First, you must enable client management in your Application.cfm page. Note that CLIENTSTORAGE points to a data source (don’t store Client variables in the Registry or as cookies!). The next page, SetClientVar.cfm, runs a query, turns that query into a WDDX packet, and creates a Client variable with the WDDX packet as its value. The third page, ReadClientVar.cfm, takes the value of the Client variable (which is a WDDX packet), turns that packet back into a query record set, and loops over that query to display some results. Q: After upgrading to CF 4.5, when I send an e-mail w