int ignore_user_abort ( [bool setting] ) This function sets whether a client disconnect should cause a script to be aborted. It will return the previous setting and can be called without an argument to not change the current setting and only return the current setting.
int connection_aborted ( void ) Returns TRUE if client disconnected.
int connection_status ( void ) Returns the connection status bitfield.