> <cflock scope="application" type="READONLY" timeout="10"> > <cfwddx action="CFML2WDDX" input="#application#" > output="temp"> > <cfwddx action="WDDX2CFML" input="#temp#" > output="request.application"> > <!--- You can replace the above two lines with the faster > <cfset request.application = Duplicate(application)> > if the contents of the application scope are simple. > Unfortunately, under CF5, Duplicate() tends to bomb > when used with structures-of-arrays-of structures and so > on. ---> > </cflock> > > (4) Add the following to onrequestend.cfm: > > <cflock scope="application" type="EXCLUSIVE" timeout="10"> > <cfwddx action="CFML2WDDX" input="#request,application#" > output="temp"> > <cfwddx action="WDDX2CFML" input="#temp#" > output="application"> > <!--- > <cfset application = Duplicate(request.application)> > ---> > </cflock>
Roger, Just curious -- what is the purpose of serializing/deserializing it into wddx and back to CF? Couldn't you just use <cfset request.application = Duplicate(application)> ? (with the proper locking of course) Tim P. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm