I cannot get either example above to work in CF 10. I get the following error:
Cookie value cannot be set.
Cookie values must be strings. The value you have provided cannot be converted to a string.
The error occurred in C:\ColdFusion9\wwwroot\WebSites\XXX\mobile\login.cfm: line 11
Europe, Middle East and Africa