Hey,
if a user loggs out from the site, and has still an other window of the site and the chat opend he is still connected to the server. Any other user (like in inet cafes or so) could write messages.

cheers