Actually Tony it works like a dream and allows me to avoid using SESSION vars keeping the system 100% scalable to a clustered environment if required. ;-)
Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com --------------------------------------------------------- Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com ----- Original Message ----- From: "Tony Weeg" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 1:29 PM Subject: RE: cookies / WDDX > bryan, > I thought for sure I read that you couldn't store > complex vars in a cookie.....but I guess a wddx packet > can really be percieved as a string, and if the length > works, then it will be ok....but not really the best way to > do it...huh? > > ..tony > > Tony Weeg > Senior Web Developer > Information System Design > Navtrak, Inc. > Fleet Management Solutions > www.navtrak.net > 410.548.2337 > > > -----Original Message----- > From: Bryan Stevenson [mailto:bryan@;electricedgesystems.com] > Sent: Friday, November 15, 2002 4:15 PM > To: CF-Talk > Subject: Re: cookies / WDDX > > > I'm doing just what you are right now. > > Follow these steps: > > 1) form is posted > 2) create a new query using QueryNew() > 3) add a row to the query using QueryAddRow() > 4) add all the form data to the row in the query usingh QuerySetCell() > 5) serialize the query into a WDDX packet using CFWDDX > 6) set a cookie with the value of the WDDX packet using CFCOOKIE > > Then wherever you need the data..... > 1) deserialze the WDDX packet in the cookie > 2) voila you have a query with all form data in it > 3) do whatever ya need to to re-create your form as it was left > > HTH > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > t. 250.920.8830 > e. [EMAIL PROTECTED] > > --------------------------------------------------------- > Macromedia Associate Partner > www.macromedia.com > --------------------------------------------------------- > Vancouver Island ColdFusion Users Group > Founder & Director > www.cfug-vancouverisland.com > ----- Original Message ----- > From: "Gyrus" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Friday, November 15, 2002 12:57 PM > Subject: SOT: cookies / WDDX > > > > I'm trying to build some multi-part forms that are supposed to store > all > the > > form data in cookies, so people can leave bits unfinished, come back > at a > > later date and finish the form off. > > > > The forms aren't *massive*, but they're not small either - not > entirely > sure > > how much data could be stored, but I'm trying to find out some limits > to > > plan the project. > > > > It says in O'Reilly's JS Bible that web browsers don't store more than > 20 > > cookies per domain and each cookie can't be more than 4 KB in size. > Now, 4 > > KB is probably not enough to store ALL potential data - but 20 is not > enough > > if I tried to store each *field* in a separate cookie. > > > > I've heard about WDDX being used to interact between CF and JS, but > I've > not > > used it before, and I can't think how it could overcome the above > cookie > > limitations. > > > > I'd be grateful if anyone had any more info on cookie limitations, or > ideas > > about how to handle this situation (without a DB!). > > > > Gyrus > > [EMAIL PROTECTED] > > work: http://www.tengai.co.uk > > play: http://www.norlonto.net > > PGP key available > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

