Dwayne,

Ok - if you use the application scope you don't need to serialize it.  You
can store it directly as a structure - removing that step.  However, you
would still have to lock it (on cf 5) when you read it. The client scope
WILL require you to wddx it.  I have a couple of application where I store a
small lookup query in the application scope and it works fine.  The session
scope will require you creating a bunch of structures in memory (one for
each user) which are presumably the same data - so I would think that is the
wrong approach - unless the menu system varies from user to user.

As far as question 2, <cfset Request.Mystruct = duplicate(session.mystruct)>
for a copy, <cfset Request.Mystruct = session.mystruct> by reference.

-Mk

-----Original Message-----
From: Dwayne Cole [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 9:54 AM
To: CF-Talk
Subject: WDDX in Session Variables


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


______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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

Reply via email to