>Objects in VFP remember what datasession they are in. When this causes a problem, I usually pass the datasession I want as a parameter, and change the datasession inside the method being called. I don't know anything about Web Connection, but if you can change the datasession before creating the Response object, it may work without passing a parameter.
No, this is by design in Visual FoxPro. Whatever the session the object was created into, any call to a method from any of those objects will switch to that base session even if you force a switch just before calling that method.
Thanks to Sergey for having confirmed that to me. We ended up dropping that approach. We proposed another approach to the client as a workaround.