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 (
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