> Hi,
> define a unload event handler and make a AJAX call to your server, telling
> it the client is logging off. And send an updated list of present users
> trough a channel.
> Just make sure you make a synchronous AJAX request (some browsers do not
> allow asynchronous requests in the unload event).
> There will still be cases where you will have "zombie" users, because, for
> some reason or other, the unload event won't fire.
> I solved this so that every client updates it's last seen flag on the server
> every X minutes, and then I made a cron script that runs every X minutes and
> removes the "zombie" clients and sends a new list to connected clients.
> Hope this helps.
> --
> Jan Hančičhttp://hancic.info
> On Tue, Jun 30, 2009 at 4:16 PM, rico <ric...@gmail.com> wrote:
> > Hello :)
> > I wonder how it could be possible to send a message when a user leave
> > the channel.
> > In the case of a chat example, when a user join the chanel and send
> > his first message, all client could see his nickname on a sidelist.
> > But when this user leave the channel, how can we tell all subscribers
> > to remove this nickname in this sidelist ?
> > thanks by advance for response
> > rico