On 24 June 2014 17:16, Aziz Saleh <azizsaleh@xxxxxxxxx> wrote: > On Tue, Jun 24, 2014 at 12:08 PM, hadi <almarzuki2011@xxxxxxxxxxx> wrote: > > > Hi, > > > > Is there's any way to run script when user close the browser in php ? > > > > Thanks . > > > > > > > Yes: http://www.php.net//manual/en/function.ignore-user-abort.php > That's detecting a client disconnection, not the browser being closed. While closing the browser will also close the connection, it's not the only action that will do so. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/