How do I get Flex to see the .NET Webservice session when I use autogenerate proxies?

So I have a Stateful.NET (C #) web service that I would like to use Flex. The only problem is that I can't see the cookie being passed, although I have WebMethods decorated with:

WebMethod(EnableSession=true)

      

I can't figure out if this is a Flex or .NET issue.

Does Flex 3 (as3) affect the session cookie by auto-generated web service classes? If not, what can I do to minimize the code I have to write to get this using the generated proxy classes.

Code examples please :)

EDIT 1

I found my own solution .

+1


source to share


2 answers


I found my problem. I did not set any values ​​for the session, so .NET did not pass cookies. I had to explicitly set the value, after which it passed the session header information perfectly:



IE. Session["isActive"] = true;

      

+1


source


I'm sure a Flex expert will be coming soon, but if you connect to it with a browser, is a cookie created or transmitted?



Slightly off-topic, but Flex isn't particularly efficient at doing / serializing, so you think you're taking advantage of the ability to use something like WebORB for that ?

+1


source







All Articles