Yes but my upper limits are well below the cookie upper limits ;-) 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: "Adrocknaphobia Jones" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 1:58 PM Subject: RE: cookies / WDDX > How are you going to test byte length before adding it to the cookie? > Come on, every way you cut it a cookie solutions is a bad idea. One > character too many and the cookie is corrupted. > > Adam Wayne Lehman > Web Systems Developer > Johns Hopkins Bloomberg School of Public Health > Distance Education Division > > > -----Original Message----- > From: Simon Horwith [mailto:shorwith@;figleaf.com] > Sent: Friday, November 15, 2002 4:51 PM > To: CF-Talk > Subject: RE: cookies / WDDX > > cookie files have a limit of around 4K. No you can't put a complex var > in a > cookie (it's just a text file - you can only write a string to a text > file) > and yes, WDDX is just a string. Due to it's verbosity, if you're > running > CFMX I definitely recommend creating an XML packet and storing that in > the > cookie - not a WDDX packet. You're going to find that WDDX packets will > become real big real fast.... and then you can't stuff them into > cookies. > Just a heads-up for you... > have a good weekend > > > ~Simon > > Simon Horwith > Macromedia Certified Instructor > Certified Advanced ColdFusion MX Developer > Fig Leaf Software > 1400 16th St NW, # 220 > Washington DC 20036 > 202.797.6570 (direct line) > www.figleaf.com > > > -----Original Message----- > From: Tony Weeg [mailto:tony@;navtrak.net] > Sent: Friday, 15 November, 2002 4:30 PM > To: CF-Talk > 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

