SOLVED!!! Help with cookies and manage_session

johan's picture
Hi I've been searching the internet and forums for help, but couldn't find any help that will solve my issue. I have to implement a client in C that will consume services. The web service uses cookies to authenticate users once they have logged in to the service. The service is implemented in WSF/PHP and uses PHP session management to send cookies. By analyzing the traffic using Wireshark I've made sure that the service sends a cookie the first http response, so there shouldn't be any issues with the service. What I can't figure out is how to write the client so that it will send the cookie back with the second, third, fourth, etc request. The client is implemented in WSF/C 1.3.0 and from what I know this version supports cookies. I successfully installed WSF/C with "--enable-libcurl" so there should be any problem with my installation, unless I also need to enable something else. In the API there is a function "axis2_options_set_manage_session" which will enable session management. However, setting this option didn't solve my issue. I would appreciate if anyone could give some guidelines on how to proceed or provide example code. //Johan Apparently I forgot to do a make clean after re-configuring.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)