Forum Moderators: coopster
When i execute an very simple Ajax request to an PHP script wich just print one line and i put an sleep(20) infront of it, it works perfectly when i refresh the page.
BUT..
When i put session_start() at the top, i can't refresh the page anymore.
It won't refresh untill the server responed.
When i remove the session_start(), i can refresh anytime i want.
Is this a know problem?
Does someone knows an solution?
Thx for the help.
This results in a delay when several requests are started.
The solution seems simple.
Put an session_write_close() asap.
So create an function which reads/writes session data, and have it session_start() and session_write_close() every time.