I have php site that curl's remote php app with mod rewrite proxy that uses session to store app state. Page's some php codes are loaded from remote server with mod proxy and curl (in to the center box, so no htm and head tags goes trough curl)
I used this method to save the curl remote session and it works ok: https://stackoverflow.com/a/6989705/2278155 Thank you @Scuzzy !
But my app also have couple simple ajax (not jquery, but plain httpRequest) that does not seem to share the same session than php / curl! ajax call also goes trough the same mod proxy and curl. When i made a counter, it was clear that ajax call and normal page refresh trough curl had a different sessions.
How can i make them same ? can i add some url parameter like sid= ?