Session resume problem with Strophe attach and Ejabberd

Posted by Adil on Stack Overflow See other posts from Stack Overflow or by Adil
Published on 2010-04-11T08:18:57Z Indexed on 2010/04/11 8:23 UTC
Read the original article Hit count: 557

Filed under:
|
|
|
|

I'm having a lot of difficulty getting strophe's 'attach()' function working.

I am working on a social network where users will be surfing pages and at the same time keep their chat connection on. I don't want to reconnect/reauthorize on every page so as per this link (http://groups.google.com/group/strophe/browse_thread/thread/430da5e788278f3a/93c48c88164f382f?show_docid=93c48c88164f382f&fwc=1) i am storing the SID and RID into a cookie onunload.

On the next page when i try to use the new SID and RID (after incrementing it by 1) my session is already destroyed. Ejabberd reports "Error on HTTP put. Reason: bad_key"

WTF is happening?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ejabberd