locked
How to keep session open along multiple calls using httpwebrequest in a WCF service. RRS feed

  • Question

  • User1871582607 posted

    Hello all. I have done everything I could think of and find via research to find a solution to this problem but it just isn't working for me. I am creating a service that will make requests to another service. You first have to make an initial request (GET) to recieve data and a session cookie. The session cookie recieved is needed to post any further requests to the server. Once I start the service and test is using SOAPUI, I can get the initial request (where I recieve the cookie) and I can post a second request, but no other (There is a sequence of posts that must be done in order). At the moment I am calling the initialize request inside of the method that makes the first request after the initialize. Is this the reason the first main request works and other dont? Please and thank you.

    Monday, January 14, 2013 9:03 AM

All replies

  • User260886948 posted

    Hi,

    You can store the session in the database so you can always get its value from the table.

    Best Regards,
    Amy Peng 

    Sunday, January 20, 2013 6:16 AM
  • User629308654 posted

    I think about you service has some issue.  Please go through this url

    http://msdn.microsoft.com/en-us/library/ff183865.aspx

    Monday, January 28, 2013 3:51 PM