[eluser]ToretoTech[/eluser]
I have somewhat of a unique issue that I can use some help with. I currently have two CI applications: A web service and a web client. The client sends requests to the service using PECL_HTTP. I have them both communicating to each other just fine.
The only thing is, I create a session for the client on the service which I'd like to be transferred transparently to the client. I do this by grabbing the Set-Cookie from the header of the response and then create a new session on the client with the value being the session returned from the service. This only works until the service stale timer [sess_time_to_update] runs out. At this point, the service creates TWO session variables, one with nothing stored to it, and the other still being the good one. This causes a problem for me because I am only expecting one cookie on the client, so what happens is the client ends up getting logged out because of an invalid session.
The service is using sessions with a DB and the client is only using the browser to store sessions.
My question is, is there any reason why the service is creating a second session var when the [sess_time_to_update] expires. Does it have something to do with the fact that all the requests are being made with PECL_HTTP and not an actual browser?
Thanks in advance for any help.