Chat session resume problem with Ejabberd and Strophe.attach

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

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/430da5e78827...) 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"

What is happening?

PS : I am using Ejabberd v2.1.2 and Strophe 1.0.1

Syndicate content