D
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:
<basicHttpBinding>
<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" />
</binding>
</basicHttpBinding>
Thank you for your help
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:
<basicHttpBinding>
<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" />
</binding>
</basicHttpBinding>
Thank you for your help