[ejabberd] multiple sessions in ejabberd

Michael Weibel michael.weibel at gmail.com
Fri Nov 9 09:29:55 MSK 2012

window.onbeforeunload (not working in opera) might help you to close the
session. you say "nickname already in use" is the error you get. i assume
you're building a muc client then?
if not, you could also take a look at ejabberd's resource_conflict option.

Am 08.11.2012 23:19 schrieb "Ayukaev Vlad" <ayukaev at gmail.com>:

> Dear developers,
> I am building a javascript client for ejabberd and want the system to be
> fault-tolerant.
> However, a user sometimes can accidentally reload the page with the
> script. Then when the system reloads it attempts
> to join the room again, but gets an error ("This nickname is already in
> use").
> Currently, I can imagine using cookie to keep user's jid,rid,sid and
> Strophe.connection.attach() to reveal the previous session.
> I also know that recently there were many concerns on this topic, buy I
> wasn't able to find any good solutions.
> Is there any other ideas how to get away of nickname error?
> Thanks,
> Vlad
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20121109/43f3326d/attachment.html>

More information about the ejabberd mailing list