Session in webservice


de Mijolla

Hi all,
I've create a webservice witch I invoke with a Silverlight and a WPF
application. In the Web service I want to use Session but the session is
lost when I call two WebMethod.

I use this header for each webmethods:
[WebMethod(Description = "GetData", EnableSession = true)]

and I put this option (allowCookies) in the Web.config of my service:
<binding name="NewBinding0" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="true">
<readerQuotas maxDepth="1048576" maxStringContentLength="1048576"
maxArrayLength="1048576" maxBytesPerRead="1048576"
maxNameTableCharCount="1048576" />

Thank you for your help


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question