I am using the httprequest class in one of my applications to request a cross domain page. Basically I needed to inlcude two pages based on thge logged in state of the user, via cross domain ajax request. Due to security issues this is not allowed.
So what I did was I created a proxy page which uses the httprequest class to request the remote file which inturn includes the two apges based on the logged in state of the user.
Now the issue is that each time the httprequest class is making a new request thus the session is getting destroyed, so once I am logged in and I refresh the page next time the class is sending a new request and thus creating a new session, so the logged in user is getting logged out.
What I need to do is maintain the same session over several http requests., untill the user opts to logout.
I have observed in firebug that the http request is sending the PHPSESSID cookie, but there is nothing being sent from the server in response. Does it make any sense?
How can I do this using php cookies? Kindly help.