On Sun, 2013-08-04 at 13:27 +0100, Tim Streater wrote: > On 04 Aug 2013 at 11:28, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> wrote: > > > Like Matijn said, unless you're using some kind of client-side method to > > continually poll the server, you can't know if they've just closed their > > browser. There are Javascript events for exiting a page, but they don't > > work correctly on Safari and iOS Safari. > > onbeforeunload works fine in Safari; I use it all the time. > > -- > Cheers -- Tim > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Apparently it has problems when browsing in "porn" mode, and mobile safari has major problems with it. I'm basing this on previous posts on forums I've been on, so it might have been fixed now, but I don't know for sure either way. Thanks, Ash http://www.ashleysheridan.co.uk