Sean - my comments inline :

On Jun 12, 2007, at 5:11 PM, Sean Corfield wrote:

> 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.

I honestly don't know if I need Client scope or not. Check the  
response I just sent to Kevin for what I'm trying to do.. essentially  
I need to store a variable from within my cfc that's called by flash,  
and when the user closes the browser window, reference that variable  
to do a database query. Whether I need Session scope or Client scope  
is a mystery to me. I used Client only because when I tied <cfset  
Session.somevar="whatever"> in my cfc, it didn't show up in the  
cookie, but when I used Client, the var showed up.


> 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.

I don't need persistence at all. I actually would prefer per-session  
in this case. I am using J2EE sessions if it makes any difference.


> 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>

Thanks, I'll give this a shot this afternoon!!

> 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
>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
CF 8 – Scorpio beta now available, 
easily build great internet experiences – Try it now on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

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

Reply via email to