Is there a way to do this w/ web services? I haven't been able to get it to work. I posted a note a few weeks ago on this list, but got no feedback.


Wouldn't storing the component in the application scope be a "Application" facade, not a session facade?

At 01:24 PM 10/14/2004, you wrote:
Every flash remoting call makes a new instance of the called
component, just like web services.  So it's impossible to have any
persistant data in the component Flash is actually calling.

Set up your business logic in a CFC that is NOT web accessible.  Then
in Application.cfm, make sure it's instantiated into the application
scope, but never reinstantiate it.

Next, create a facade CFC that has the same methods as your business
logic CFC, and every method simply calls the corresponding method of
the business logic CFC, which is cached in the application scope, and
returns the result.

That's where the facade is.  Inside the facade, you can do any type of
session management you want, Flash will send cookies with it's request
as I understand it (I've never played with it).  Or, if you prefer,
you can do a custom setup, where your flash movie "logs in" to the
server and gets a unique ID, which it then passes to all subsequent
method calls for authentication.

Let me know if that all makes sense.

cheers,
barneyb

On Thu, 14 Oct 2004 12:57:34 -0400, Ken Dunnington <[EMAIL PROTECTED]> wrote:
> I am getting ready to build an app using Flash Remoting for the first
> time, and I was thinking about a session facade, since it will be an
> ecommerce site. I think I'm overanalyzing it, so I was hoping someone
> here could set me straight on the concept of using a session facade
> with a Flash front end.
>
> Specifically, how/where do you initialize the session? In the
> Application.cfm file? Do you make all method calls to the facade
> component only? (Is the facade component the 'controller' in this
> approach?) Can you make a call like CFCgateway.IsLoggedIn() in Flash
> that returns an accurate result? (In other words, when you make the
> gateway connection to the session facade object, what scope does that
> object exist in?)
>
> I'm sure I'm making too much out of this, but I haven't had my "a-HA!"
> moment with Flash Remoting yet, and am hoping the list can set me on
> the right track :)
>
> Thanks for any help/suggestions,
>  - Ken
>
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com

I currently have 4 GMail invites for the taking
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

--
Jeffry Houser, Web Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711 | Phone: 1-203-379-0773
--
My Books: <http://www.instantcoldfusion.com>
My Recording Studio: <http://www.fcfstudios.com>
My Energetic Acoustic Rock Band: <http://www.farcryfly.com>
--
When did Reality Become TV



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.


CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to