I have a REST-full setup where a PHP server sends REST requests via XML to another python server. I would like to implement sessions on the python server so that after authentication, subsequent requests will not have to send authentication information.
I have implemented the python bit and tested with a web browser. It works fine. However, performing requests from a php script to the said python server seems to create a new session each time since printing out the SESSION_ID, I get new values for each request.
So my question is, how can I make the PHP(Apache) server retain state for sessions just as normal browsers do?