Were I doing this, I wouldn't store the WDDX packet in the application (or whichever) scope, I'd store the structure/array in the application scope. WDDX will serialize a complex data type, but if you are staying within the friendly confines of CF, you would be better off just storing the variables as a structure/array.
I'll assume that you have the navigation the same for each user of the site, thus storing it as an application variable as opposed to session. In application.cfm you could read the text file that you are storing the WDDX in, use cfwddx to convert to an application scoped array. Since you are reading a file, this action could tax the server, so you can wrap this code in something like <cfif NOT application.Initialized> so that it will only run when the app is initialized. For session or app scope, you should lock the references to the vars. They say you don't have to do this in CFMX. Moving it to the request scope won't do much for you unless you might edit the contents of the var in each request. If you want to copy it over you should use StructCopy() instead of an assignment (request.foo = application.foo). >>> Dwayne Cole <[EMAIL PROTECTED]> 06/27/02 10:54AM >>> I store my navigation system as a array of structures coverted to a WDDX packet. I don't want to rebuild the packet for each page request, so I'm thinking about storing the packet in the application, client or session scope. I have two questions 1). Is anyone storing WDDX packets in application,client, or session scope. If so, would you please share your experience. 2). What is the best way to get a complex data types like an array of structures of arrays from the session scope to the request scope. Prof. Dwayne Cole MS in MIS, MBA Certified Advanced ColdFusion Developer 850-591-0212 "It can truely be said that nothing happens until there is vision. But it is equally true that a vision with no underlying sense of purpose, no calling, is just a good idea - all "sound and fury, signifiying nothing." The Fifth Discipline - Peter Senge ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

