Re: close the browser
| From: | Stuart Dallas | Date: | Tue, 24 Jun 2014 16:26:31 +0000 |
| Subject: | Re: close the browser | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323527@lists.php.net to get a copy of this message | ||
On 24 June 2014 17:16, Aziz Saleh <azizsaleh@gmail.com> wrote:
> On Tue, Jun 24, 2014 at 12:08 PM, hadi <almarzuki2011@hotmail.com> 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/