If i use the code in one script, like:
ignore_user_abort(1);
sleep(30);
And i close the page, the client stay in a timeout for 30 seconds to any page of server. I try put "Timeout 5" in the apache2.conf to close the connection of client but nothing...
- I enter in the page: www.example.com/timeout.php ( using the code sleep(30) )
- Close the page
- Enter in the page: www.example.com/somebody.php ( the content just a "Hello, World" )
- Stay loading the page... and for 30 seconds the page load.
Somebody can help? Thank.
session_write_close()
to your sleep() script. – Marc B Dec 3 '12 at 15:37