Flash/CF Security and Communication

View: New views
2 Messages — Rating Filter:   Alert me  

Flash/CF Security and Communication

by Jonathon Parker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Flash/CF Experts,
 
Greatly appreciate if someone could answer or direct me to the correct
on-line resource for some of my questions.
 
I not a Flash developer, but will be working on a ColdFusion (CFusionMX 6.1)
project that will incorporate Flash.  We intend to use the Flash remoting
that comes with 6.1.  We are currently in the design phase, so have no
prototype to test.  But we have planned that:
 
The user will login to the application via ColdFusion.
A Flash app in the same browser will handle some of the dynamic interactive
content.
 
If the Flash app communicates back to a CFC on the server via Flash
remoting, will the session information for the login be available to the
CFC?  Basically, can the CFC differentiate between users when called from a
flash app in the same browser that the user logged in?
 
The only examples on the web I have seen show Flash communicating with the
CF server and receiving a response.  Is there a way/how do you engineer/ for
the server to initiate a message and broascast it to the Flash app for all
logged in users?
 
If the user is only using the Flash app for an extended period of time, will
the session 'stay alive' or is there danger of the session timing out?
 
Jonathon


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:30:141
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/30
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:30
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: Flash/CF Security and Communication

by Brad Wood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm no expert, I've only dabbled in this...

But I am pretty sure that all you need to do is have a cfapplication tag
in your web accessible CFC, or have the CFC in a folder which includes
an application.cfm file or something with the cfapplication.  That way
every call to the CFC will be in the context of that user's session
inside your application.

If a flash movie is making constant calls to the CFC, it will keep their
session from timing out, but your CFC will need some way to communicate
back to the flash if and when they do time out.  

Right now (as far as I know) it is not possible to have the server
"push" data to the client.  The current solution to the best of my
knowledge would be to have your flash app poll the server.

FYI: Flex 2.0 Enterprise (NOT the free standard version) will allow you
to push data from the server to the client.  But that is not released
yet, and will cost quite a bit.  

Hope this helps.

~Brad

 
-----Original Message-----
From: Jonathon Parker [mailto:jparker@...]
Sent: Wednesday, April 12, 2006 1:07 PM
To: CF-Flash
Subject: Flash/CF Security and Communication

Flash/CF Experts,
 
Greatly appreciate if someone could answer or direct me to the correct
on-line resource for some of my questions.
 
I not a Flash developer, but will be working on a ColdFusion (CFusionMX
6.1)
project that will incorporate Flash.  We intend to use the Flash
remoting
that comes with 6.1.  We are currently in the design phase, so have no
prototype to test.  But we have planned that:
 
The user will login to the application via ColdFusion.
A Flash app in the same browser will handle some of the dynamic
interactive
content.
 
If the Flash app communicates back to a CFC on the server via Flash
remoting, will the session information for the login be available to the
CFC?  Basically, can the CFC differentiate between users when called
from a
flash app in the same browser that the user logged in?
 
The only examples on the web I have seen show Flash communicating with
the
CF server and receiving a response.  Is there a way/how do you engineer/
for
the server to initiate a message and broascast it to the Flash app for
all
logged in users?
 
If the user is only using the Flash app for an extended period of time,
will
the session 'stay alive' or is there danger of the session timing out?
 
Jonathon




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:30:142
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/30
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:30
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.30
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54