The best way I can see to answer this would be to use the <body onUnload="function()" in javascript and just have that function run what you need. You could have php put the screen name into some variable in the javascript and then onUnload (the user either closes the browser or changes the page) run the function that tells whatever your delete username program is to remove that user from the list
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php