Re: Stop process when user close window browser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thomas,

  Yes. I read the manual regarding the connection handling.
However ,in my php program , the execution did not stop , because i have logger which log sql statement "INSERT" statement when inserted data to database is ok .

When i close the browser , the sql execution still running, statement is logged.

Any idea how to stop it ? Because it cause my web page to be slow.

Thanks.

Thomas Munz wrote:
By default, PHP will also stop execution when the browser is closed. See:

http://de.php.net/manual/en/features.connection-handling.php

on Friday 30 June 2006 09:06, weetat wrote:
Hi all,

  I am using PHP 4.3.2 and MYSQL database.
  I think this question has been asked many times, however not solutions.

  The problem is that I have a php script which connect to db and update
data to db which took length of time to be completed. However sometimes
user accidentally close the window browser or kill the window browser.
The php which a server script language will not know that the window
browser has been closed , so the program execution is keep running .
This will choke the memory in the server and thus choke the web page.

So ,are there ways to stop program from executing when user close the
browser window.

Thanks
- weetat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux