On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
> So ignoring the stuff below, can you or anyone shed some light on how
> I can set a Client or Session variable in the cfc that I'm using with
> flash, that I can use later in my onEndSession function?

Oops, I misread your code somewhat! I never ever use client variables
so I completely missed that you're trying to use CLIENT scope here. My
bad.

Flash Remoting should handle per-session cookies but I think if you
want to use persistent cookies, you need to use JavaScript with your
Flash app to manipulate them. If you're using J2EE sessions on your
server (highly recommended!) then regular session variables should
"just work" with Flash Remoting.

So if you enabled J2EE sessions and use SESSION scope instead of
CLIENT scope, you should be fine:

       <cffunction name="onSessionStart" returnType="void" output="false">
               <cfset session.testVar = "onSessionStart">
       </cffunction>

       <cffunction name="onSessionEnd" returnType="void" output="false">
               <cfargument name="sessionScope" required="yes">
               <cfargument name="appScope" required="yes">
               <cfset sessionScope.testVar = "onSessionEnd">
       </cffunction>
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280863
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to