On 1/7/2010 12:48 PM, Dave Watts wrote:
>
> Not necessarily right. Some web service clients will pass cookies
> properly. I believe that CF does this, so if you have your application
> set to use cookies with session management, your CF client should work
> fine.
>    

How would this work?  Adding a function that returns the session state 
of the Web service.

<cffunction name="getSESSION" access="remote" returntype="struct">
<cfreturn session>
</cffunction>

And invoking after each WS call from my consuming page.
<cfoutput>#testWS.getID()#</cfoutput>
<cfdump var="#testWS.getSESSION()#">
<cfset testWS.setID("44")>
<cfdump var="#testWS.getSESSION()#">
<cfoutput>#testWS.getID()#</cfoutput>
<cfdump var="#testWS.getSESSION()#">

Shows me getting a new session state with each call.  Is there something 
I need to do so that the session cookies are passed with the web service 
request?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to