Re: close the browser

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

 



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/

[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