I'm working on a PHP/MySQL/Javascript based online chess game. One problem I've encountered is the possibility of a user on one end just closing his browser. Is there any way to reliably detect if someone has been idle/closed the page?I'm working on a PHP/MySQL/Javascript based onl