This is weird...

 

I'm linking to a coldfusion component I'm creating.

 

For the sake of playing around a bit, I created the variable "rc"

 

The following AS3 function queries the CF server to see if the user is
logged in or not; returns true for yes, false for no

 

            public function userStatus():Boolean

            {

                  rc = authManager.userStatus();

                  return rc;

            }

 

That function always returns "true", even though the coldfusion query is
now set to return false for both cases as you see below.

 

This is the coldfusion function:

 

    <cffunction name="userStatus" access="remote" returntype="boolean">

        <cfif IsUserLoggedIn()>

            <cfreturn false>  <---- this is normally true but set it to
false to verify what is going on

        <cfelse>

            <cfreturn false>

        </cfif>

    </cffunction>

 

 

This is the actual Flex display/call:

<mx:Text text = "{'Logged in? ' + idLoginForm.userStatus()}"/>

 

This displays the following:

 

Logged in? True

 

Any idea on what is going on here?

 

 

(as a side note, I can't set a break point in that function.  The break
point keeps moving to the bottom of the function and out of the scope of
the variable so I can't watch it.)

 

 

Thanks!

Reply via email to