Hi...
I've got a problem with the funtion ignore_user_abort().
If someone enters the url an arrives at the mainpage, there will be made an entry into a postgre database.
Now, I wanna know if the user close the browser.
If the user closes the browser, the entry should be removed.
The Problem is, that if I run the following script, the server will not create any output.
Does someone have an idea, what is wrong here?? Or does someone have an idea, how i may solve this problem in another way?
Thanks to all
Stormrider
<pre>
ignore_user_abort(true);
while (true) {
flush();
sleep(2);
if (connection_status()!= 0){
$sql = "delete ...";
$this->sql_delete($sql);
die();
}
}
</pre>