How are you currently doing user and session management, then? Is it being done entirely in Flex? In order to do session management in ColdFusion, you need to have either an Application.cfc (or an Application.cfm...Application.cfc is recommended, however) file in the same folder as the ColdFusion portion of your application. The CF server will automatically invoke Application.cfc before it executes any of your cfc or cfm pages, and automatically execute any of the OnApplicationStart, OnSessionStart, OnRequestStart, OnRequest, OnRequestEnd, OnSessionEnd, OnApplicationEnd or OnError methods you have defined in the Application.cfc file. OnApplicationStart gets triggered when the CF application is first started, OnSessionStart is triggered every time a new session is started, OnRequestStart is triggered at the start of every page request, etc. You don't need to define all of them...in my applications I usually have OnApplicationStart, OnSessionStart, OnRequestStart, OnSessionEnd and OnError defined. You also do not need to worry about when or how to call any of these methods...the CF server will do that for you. All you need to do, essentially, is define what you want to happen when a session starts or ends, when a page request happens, when the application starts, etc. and CF will invoke the appropriate method as you hit each event. A simple Application.cfc file might look something like this:
<cfcomponent output="false">
<!--- This sets the name of your application --->
<cfset THIS.name="testApplication">
<!--- Application timeout set to 25 minutes here --->
<cfset THIS.applicationTimeout = createTimeSpan(0,0,25,0)>
<!--- This line enables session management for your entire application --->
<cfset THIS.sessionManagement=true>
<!--- Session timeout set to 25 minutes here --->
<cfset THIS.sessionTimeout = createTimeSpan(0,0,25)
<cffunction name="onApplicationStart" output="false" returntype="void">
<!--- All Application-specific initialization code goes here --->
</cffunction>
<cffunction name="onRequestStart" output="false" returntype="void">
<!--- Any code you want to be executed at the beginning of any CF page would go here --->
<!--- For example, you might want to use this method to check and see if a user is logged in --->
<!--- and then either set default values or take some other sort of action if he isn't...redirect him to a login page, for example --->
</cffunction>
<cffunction name="onSessionStart" returntype="void">
<!--- any code you want to be executed when a user session starts would go here --->
<cfset SESSION.created = Now()>
</cffunction>
</cfcomponent>
Does this help? Also I would really recommend you read the section in the livedocs regarding the Application framework in CF and how to handle session and application data.
~ a