Heres what i need to do: 1) Send a request to a Login Page on a remote server (fine no problem ) 2) IN THE SAME SESSION - request another page on that server In MFC id use CInternetSession so that effectively this was the same session on the remote server. Is there a way to do this in PHP?
what mean "Send a request to a Login Page on a remote server" - user contact with Server 1, Server 1 send request to Server 2(Login Page) ? If none Server 2, what the problem ? Open session ( session_start()) at all pages what you need.
Use php to grab the session ID from the second server. Then store that sessionID in a database on the localserver and then send it with any further requests to the remote server. How are you sending a request to the remote server, Via HTTP POST?