RE: sessions and flash remoting:
is this new to CF6.1 or was it available to 6.0 and I couldn't get it going
for other (unknown) reasons?
It worked in CFMX6.0 (macromedia.com relies heavily on it).
Your Flash movie should call a CFC which acts as a session fa�ade, i.e., it knows about session scope and manipulates objects that are themselves stored in session scope.
Typically you'd have code like this:
<cfcomponent displayname="cartfacade"
hint="I am invoked from Flash"> <cffunction name="addToCart" access="remote" ...>
<cfargument name="item" ... />
<cfset getCart().add(arguments.item) />
</cffunction> <cffunction name="getCart" access="private" returntype="cart">
<cfif not structKeyExists(session,"cart")>
<cfset session.cart =
createObject("component","cart).init() />
</cfif>
<cfreturn session.cart />
</cffunction></cfcomponent>
<cfcomponent displayname="cart"
hint="I am the actual shopping cart."> <cffunction name="init" access="public" ...>
<cfset variables.contents = arrayNew(1) />
</cffunction> <cffunction name="add" access="public" ...>
<cfargument name="item" ... />
<cfset arrayAppend(variables.contents, arguments.item) />
</cffunction></cfcomponent>
Make sense?
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
