[ejabberd] BOSH and webpage page persistence?

zeank steve at zeank.in-berlin.de
Tue Jun 24 16:43:56 MSD 2008


jsjac in combination with ejabberd's http-bind supports suspending and
resuming a session. All you have to do is do sth like


when unloading the page (onunload) and sth like


when loading the page (onload handler). See
jsjac/examples/simpleclient.html for an example.

Cheers, Steve

Am Dienstag, den 24.06.2008, 11:36 +0200 schrieb Simon Tennant:
> We are using ejabberd's http-bind and the jsjac libraries with emite to 
> prodouce a Google Web Toolkit message reader and sender.
> Since users will be moving around the website lots, we don't want to be 
> opening new sessions to the proxy and then to ejabberd on each page 
> load. I notice that facebook.com has something similar where there is an 
> IM component on the bottom of each page.
> Does mod_http or the http-bind code present a nice way to keep some sort 
> of session persistence between page loads?
> One of the options I saw was tying the session ID to the site cookie. 
> Any thoughts on this approach?
> We are currently using apache's proxy for the http-bind channel.  How 
> does this compare with the built-in ejabberd mod_http code?
> S.

More information about the ejabberd mailing list