Session in webservice

Discussion in 'ASP .Net Web Services' started by de Mijolla, Apr 6, 2009.

  1. de Mijolla

    de Mijolla Guest

    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
     
    de Mijolla, Apr 6, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Smythe
    Replies:
    3
    Views:
    1,326
    Jeff Smythe
    Jan 2, 2004
  2. batista
    Replies:
    1
    Views:
    961
    Laurent Bugnion
    Jan 26, 2006
  3. batista
    Replies:
    0
    Views:
    585
    batista
    Jan 26, 2006
  4. =?Utf-8?B?Um9iSEs=?=
    Replies:
    4
    Views:
    5,415
    =?Utf-8?B?Um9iSEs=?=
    Apr 11, 2007
  5. Jazzis
    Replies:
    2
    Views:
    279
    Jazzis
    Sep 23, 2003
Loading...

Share This Page