This content has been marked as final. Show 2 replies
Not sure I'm following what you're trying to do. In my mind, your asking to have Flex call to a CFC that's not in its session to begin with. Maybe a little more detail is needed. Are you saying they come into the side and the Flex app is embedded inside cfm pages that are part of the site and in the same session? If so, have you tried changing the file wrapper to a cfm instead of html so CF is handling it? I'm curious why you don't have them log in with Flex and use the CFC to do the checks in the database and return true or false as to isAuthorized or something? If your other CFCs are working, that would work.1 person found this helpful
Thank you for your reply John,
Sorry I wasn't clear in my description.
I do -in fact- have a CFC check my client's log-in and return a true or false, however in subsequent site functionality, it is the norm to see whether the session has expired or not. From Flex I am using a RemoteObject call to a CFC; the CFC has the following if statement:
<cfif SESSION.CLIENT.boolClientLoggedIn eq "true">
<cfthrow message="Attempting to call fncClientWebSignup when client is logged in.">
The faultString I get in Flex is 'Variable SESSION is undefined.'
Also, I did try to change my wrapper from html to cfm and still no success. Not only that, but I've tried Webservices (which failed miserably because I couldn't even get the details of the SOAP fault!!!).
I built a test cfm page that tests my cfcs (instead of Flex calling them, I had the cfm call the same cfcs) and Session variables were defined and everything went well.
It so happens that when Flex calls the SAME cfcs, the SESSION variable is undefined.
I hope this clears up my problem.