I have seen this done using JavaScript's onunload to signal when someone is leaving the page. Use this to spawn a small pop-under that does some logging of the parent window's location and then closes itself. If there are more elegant solutions I'd love to hear them as well.
-Carson -----Original Message----- From: AOLserver Discussion [mailto:[EMAIL PROTECTED] On Behalf Of Bas Scheffers Sent: Monday, March 29, 2004 8:07 AM To: [EMAIL PROTECTED] Subject: [AOLSERVER] Detecting client disconnect Hi, Is it possible to detect the browser has close the connection? What I am trying to do is to write a simple client/server app using AOLserver. Commands and their response get sent via normal HTTP queries, but I want the client to listen to a "status" channel: ie: open a connection to a url that writes this out using ns_write. Ofcourse this his to stop once the client disconnects. "ns_conn isconnected" doesn't seem to do the trick (nor does the manual indicate it should, but it was worth a try :) Is there any way to do this? Or will I have to use plan B, which is to close the connection myself after a minute or so and make the client reconnect? Thanks, Bas. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
