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?
Reading from another question with a similar issue,
The load of session management is amortized across all the clients, the clients store their session state and the servers can service an order of magnitude or more clients in a stateless fashion.
The other question here
So ALL in ALL, as much as there might be ‘hacks’ and ‘workarounds’ for this problem, it seems that fundamentally, maintaining state server side between REST-full requests negates the original architectural design.