I personally don't like to use Sessions with Flash. I basically do a CFLogin
to authenticate for the service calls, than pass back any needed vars and
hold them in Flash. I can think of a few situations where this won't
accomplish the end goal, but for most of my projects it's worked fine.

Cheers,

!k

-----Original Message-----
From: John Robinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 12, 2007 2:57 PM
To: CF-Talk
Subject: Re: Using sessions with Flash Remoting

Thanks Sean -

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?

In my onEndSession function, I have 2 arguments, 'sessionScope' and  
'appScope'.

Assuming I set my variable in a separate cfc using the following:

<cfset Client.testVar = "someVar">

how do I reference that same variable in my onEndSession function?

Also, I'm still not convinced that these events (onEndSession, etc)  
are even firing. Can anyone provide a simple example that shows how  
they're supposed to work?

Thanks,
John


On Jun 12, 2007, at 1:25 PM, Sean Corfield wrote:

> On 6/12/07, John Robinson <[EMAIL PROTECTED]> wrote:
>>         <cffunction name="onApplicationStart" returnType="boolean"
>> output="false">
>>                 <cfset Client.testVar = "onApplicationStart">
>
> This stores the client.testVar in VARIABLES.client.testVar which is
> essentially thrown away after the request runs.
>
>> Then in my cfc (or cfm file), I have a function that contains this  
>> line:
>> <cfset Client.testVar = "SomeOtherVar">
>
> That is setting a different variable to any of the stuff in your
> Application.cfc.
> -- 
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280860
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