Session Cache

Hello, I’m developing an ajax jabber IM client (using Strophe JS library). The client is in a web page which a user need to be reload to navigate in the site so the ajax jabber client reloads with the page.
I need to reload roaster and chats every time the page refreshes without disconnect to xmpp server.

Is there a way to do this?

I’d like to use sometings like mentioned in this post ( and how explained here

How can I implement this with OpenFire?

Thank you.

Looking for same, how to handle page refreshes and to persist the chat state?