This might sound stupid, but I'm trying to make a client using PHP (with curl) and Ajax.
I'm facing a problem.
I've an index page with buttons sending requests to a server using Curl. I would like to be able to send multiple request from this index page by clicking different buttons.
The ajax part is working so I can call my php pages from my buttons. My issue is, I can't find a way to "reuse" my curl connection for subsequent requests. Every informations I send are forgot between each requests. I stored my connection like this :
//Initialisation
$ch = curl_init();
//Je stocke la connexion dans un pointeur pour stockage dans variable session.
$_SESSION['connexion'] = $ch;
this is done in the first requested ajax. Then in the second, when I call it, it becomes Null. Have you any idea of I could achieve this?