Modern browsers should support 4k worth of data in a cookie - i.e. about
4096 characters. There is also a limit on the number of cookies you can
set - something around 20 per domain. It is a good idea to store as little
information in a cookie as possible. WDDX is a quick solution to your
problem, but WDDX is verbose.

TK

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 2:17 PM
To: CF-Talk
Subject: Re: How Do I Get The Results of This Query Into a Cookie?


You need to take the result set from the query and serialize it using
CF2WDDX and stick the serialized packet in the value of the cookie (you'll
need to use WDDX2CF to de-serialize and read it later).  Note that there are
limits to how much data you can stuff in a cookie....so if it's more than 1
record with about 20 fields you are out of luck....use SESSION vars instead.

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220397
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to