|
Thanks Andy, So if I have a cfc that queries the DB should I code it like so: <cffunction name=”list” access=”remote”
returntype=”query”> <cfset EMP_ID = #SESSION.EMP_ID
#> <cfquery
name=”getRecs” datasource=”#app.dsn#”> SELECT
* FROM
TABLE WHERE
EMP_ID = #EMP_ID # </cfquery> <cfreturn results> </cffunction> When I call it from my flex app, I should not set the EMP_ID as
an argument for the cfc, but merely call the session variable in the body of
the function correct? I don’t know how I ended up with this project, but I’ve
never used flex or flash, so this whole swf/as thing is all kinda weird for
now. Sorry about the spaces, Outlook 2007 seems to have a problem
with line breaks and carriage returns. Thanks, Bacardi Bryant regActionTM Programmer [EMAIL PROTECTED] From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Trice Session variables are maintained in session on the server.
You should be able to get at them directly from within coldfusion.
You do not need to pass them in as arguments. Remember, session
variables are only on the server. The client runtime can maintain state
within itself... the difference is that it uses memory on the client
machine. -Andy From: [email protected] on behalf of
Bacardi Bryant Hi, We
have a CF application that uses session variables for security and access
control. How do I get at session variables in FLEX. The variables are used in a
webservice call.
<mx:request>
<var>session.var</var>
</mx:request> This
is what I tried, quite naturally that didn’t work. TIA for any help. Thanks, Bacardi Bryant regActionTM Programmer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Passing session variables to webservice Bacardi Bryant

