On Sat, Sep 29, 2012 at 3:53 PM, Laurence MacNeill
<[email protected]>wrote:

> I thought sessions are turned on globally for every app run on the
> ColdFusion server... Do I need to turn them on for the Flex app? How do I
> do that?
>
The same way you do for any ColdFusion application, using an
Application.cfc file.

> And the Application.cfc file is nonexistent - I knew you needed an
> Application.cfm file for ColdFusion apps, but have never heard of using an
> Application.cfc file for a Flex app.
>
You are writing a ColdFusion CFC right? That is ColdFusion code, so what
part is a ColdFusion application, not a Flex application. Flex and
ColdFusion are interacting here, but be sure to remember what's running on
the server is ColdFusion code and follows all the same rules as any
ColdFusion application, even though Flex is involved on the client too.

> So I guess I should create one, but I have no idea what to put in there,
> or where to put the file...
>
I'd drop it into the same directly as your remoting CFC. More about how
Application.cfc works and where it goes is also available in the Coldfusion
Documentation.

> I'm guessing these two things together would easily explain why session
> variables aren't working for me - I just wonder why neither of them was
> mentioned in Ben Forta's blog that I linked to before.
>
I'd consider that to be pre-requisite knowledge and not something to always
cover. Please take this as constructive advice - it really sounds like you
might be well served by taking a step back from the code and spend a little
time reviewing the ColdFusion documentation around sessions and
Application.cfc.

-Cameron

-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook <http://www.facebook.com/cameroncf> |
twitter<http://twitter.com/cameronc> |
google+ <https://profiles.google.com/u/0/117829379451708140985>

Reply via email to