Update: The usage of the sessions is the problem when calling the polling page because it's already open one time.
I'm doing a long polling on my web app.
For now i'm just doing something like: (the final goal is do a query then sleep, then a query, then sleep,...)
sleep(10);
echo 'ok';
on my server side (just to test it)
The issue : when i try then to load another page it's always taking 10 seconds.