librelist archives

« back to archive

Prebind issue when logging to 2 sites at the same time

Prebind issue when logging to 2 sites at the same time

From:
Gauri Padbidri
Date:
2015-04-20 @ 12:54
Hi JC,

 

I have run into a situation and don't know how to handle it.  I am trying to
use the PREBIND feature to make a user login to 2 sites at the same time : 

 

Following is the test case : 

1.      User visits the site : subdomain1.example.com

2.      User logs in as "testuser" to chat internally, by initially
establishing Strophe Connection (we are using site login to login to XMPP
Server) and then passing the Connection jid, sid and rid to the
Converse.Init as follows : 

connection = new Strophe.Connection(BOSH_URL);

        connection.connect(username + '@' + chatDomain, password, function
(status) {

            onConnect(status, callback, event);

        });

      function onConnect(status){

                                     if(status === Strophe.Status.CONNECTED)
{

 

                                                 setCookie(cname,
'jid,sid,rid', 1);// Cookie Value contains JID, SID and RID from the
Connection Object.

 

             converse.initialize({

                    auto_subscribe: false,

                    auto_list_rooms: true,

                    bosh_service_url: BOSH_URL,

                    hide_muc_server: false,

                    i18n: locales.en,

                    prebind: true,

                    jid: connection.jid,

                    sid: connection._proto.sid,

                    rid: connection._proto.rid,

                    play_sounds: true,

                    show_controlbox_by_default: true,

                    roster_groups: false,

                    keepalive: true,

                    allow_muc: true

        });

}

                         

3.      Now user logs visits another site : subdomain2.example.com. Here, I
read the DOMAIN Level Cookie I set in subdomain1.example.com and fetch JID,
SID and RID.

4.      Now in subdomain2.example.com page load, I connect to Strophe as
follows : 

connection1 = new Strophe.Connection("http://xmppdomain.com/http-bind");

connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);

5.      In the Callback "onAutoLoginConnect", I get Strophe Disconnected on
subdomain2.example.com and Converse automatically logs out from
subdomain1.example.com (This makes sense as I am trying to acquire the
session from the session already logged in)

 

What should be the SID ad RID in case of subdomain2.example.com ? Can you
tell me where am I going wrong and how can I allow auto login when I have
JID, SID and RID available in subdomain2.example.com

 

Best Regards,

Gauri Padbidri

Re: Prebind issue when logging to 2 sites at the same time

From:
Gauri Padbidri
Date:
2015-04-21 @ 15:35
Hi JC,

 

Any updates on this issue ? I need to fix this one, but I am not getting any
leads..Please help me. Thanks !

 

Best Regards,

Gauri Padbidri

 

From: Gauri Padbidri [mailto:gpadbidri@genius-minds.com] 
Sent: Monday, April 20, 2015 6:24 PM
To: 'conversejs@librelist.com'
Subject: Prebind issue when logging to 2 sites at the same time

 

Hi JC,

 

I have run into a situation and don't know how to handle it.  I am trying to
use the PREBIND feature to make a user login to 2 sites at the same time : 

 

Following is the test case : 

1.      User visits the site : subdomain1.example.com

2.      User logs in as "testuser" to chat internally, by initially
establishing Strophe Connection (we are using site login to login to XMPP
Server) and then passing the Connection jid, sid and rid to the
Converse.Init as follows : 

connection = new Strophe.Connection(BOSH_URL);

        connection.connect(username + '@' + chatDomain, password, function
(status) {

            onConnect(status, callback, event);

        });

      function onConnect(status){

                                     if(status === Strophe.Status.CONNECTED)
{

 

                                                 setCookie(cname,
'jid,sid,rid', 1);// Cookie Value contains JID, SID and RID from the
Connection Object.

 

             converse.initialize({

                    auto_subscribe: false,

                    auto_list_rooms: true,

                    bosh_service_url: BOSH_URL,

                    hide_muc_server: false,

                    i18n: locales.en,

                    prebind: true,

                    jid: connection.jid,

                    sid: connection._proto.sid,

                    rid: connection._proto.rid,

                    play_sounds: true,

                    show_controlbox_by_default: true,

                    roster_groups: false,

                    keepalive: true,

                    allow_muc: true

        });

}

                         

3.      Now user logs visits another site : subdomain2.example.com. Here, I
read the DOMAIN Level Cookie I set in subdomain1.example.com and fetch JID,
SID and RID.

4.      Now in subdomain2.example.com page load, I connect to Strophe as
follows : 

connection1 = new Strophe.Connection("http://xmppdomain.com/http-bind");

connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);

5.      In the Callback "onAutoLoginConnect", I get Strophe Disconnected on
subdomain2.example.com and Converse automatically logs out from
subdomain1.example.com (This makes sense as I am trying to acquire the
session from the session already logged in)

 

What should be the SID ad RID in case of subdomain2.example.com ? Can you
tell me where am I going wrong and how can I allow auto login when I have
JID, SID and RID available in subdomain2.example.com

 

Best Regards,

Gauri Padbidri

Re: [conversejs] Prebind issue when logging to 2 sites at the same time

From:
Jc Brand
Date:
2015-04-22 @ 21:00
Hi

You can't share a BOSH session between two different separate instances of
converse.js. 

The solution I always suggest and for which I've not found anything better
is to use message carbons to make sure both instances show all the sent 
and received messages. 

BTW, I'm still waiting on your feedback on this ticket. 
https://github.com/jcbrand/converse.js/issues/327

JC 

On 20 April 2015 2:54:06 nm. CEST, Gauri Padbidri 
<gpadbidri@genius-minds.com> wrote:
>Hi JC,
>
> 
>
>I have run into a situation and don't know how to handle it.  I am
>trying to
>use the PREBIND feature to make a user login to 2 sites at the same
>time : 
>
> 
>
>Following is the test case : 
>
>1.      User visits the site : subdomain1.example.com
>
>2.      User logs in as "testuser" to chat internally, by initially
>establishing Strophe Connection (we are using site login to login to
>XMPP
>Server) and then passing the Connection jid, sid and rid to the
>Converse.Init as follows : 
>
>connection = new Strophe.Connection(BOSH_URL);
>
>     connection.connect(username + '@' + chatDomain, password, function
>(status) {
>
>            onConnect(status, callback, event);
>
>        });
>
>      function onConnect(status){
>
>                                if(status === Strophe.Status.CONNECTED)
>{
>
> 
>
>                                                 setCookie(cname,
>'jid,sid,rid', 1);// Cookie Value contains JID, SID and RID from the
>Connection Object.
>
> 
>
>             converse.initialize({
>
>                    auto_subscribe: false,
>
>                    auto_list_rooms: true,
>
>                    bosh_service_url: BOSH_URL,
>
>                    hide_muc_server: false,
>
>                    i18n: locales.en,
>
>                    prebind: true,
>
>                    jid: connection.jid,
>
>                    sid: connection._proto.sid,
>
>                    rid: connection._proto.rid,
>
>                    play_sounds: true,
>
>                    show_controlbox_by_default: true,
>
>                    roster_groups: false,
>
>                    keepalive: true,
>
>                    allow_muc: true
>
>        });
>
>}
>
>                         
>
>3.      Now user logs visits another site : subdomain2.example.com.
>Here, I
>read the DOMAIN Level Cookie I set in subdomain1.example.com and fetch
>JID,
>SID and RID.
>
>4.      Now in subdomain2.example.com page load, I connect to Strophe
>as
>follows : 
>
>connection1 = new
>Strophe.Connection("http://xmppdomain.com/http-bind");
>
>connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);
>
>5.      In the Callback "onAutoLoginConnect", I get Strophe
>Disconnected on
>subdomain2.example.com and Converse automatically logs out from
>subdomain1.example.com (This makes sense as I am trying to acquire the
>session from the session already logged in)
>
> 
>
>What should be the SID ad RID in case of subdomain2.example.com ? Can
>you
>tell me where am I going wrong and how can I allow auto login when I
>have
>JID, SID and RID available in subdomain2.example.com
>
> 
>
>Best Regards,
>
>Gauri Padbidri

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [conversejs] Prebind issue when logging to 2 sites at the same time

From:
Gauri Padbidri
Date:
2015-04-23 @ 11:01
Hi JC,

 

Thanks for the update. Around the PULL request for the ticket, I have not
been able to intercept the browser close event precisely, hence we have put
this task on a lower priority for now. But, when I am done I will surely
initiate a PULL request for the same.

 

Also, around message_carbons, how does it work ? Meaning both sites having
prebind:true and message_carbon:true would do the trick ? What do I need to
do to get it working apart from configuring my XMPP for XEP - 0280 ? Thanks
!

 

Best Regards,

Gauri Padbidri

 

From: conversejs@librelist.com [mailto:conversejs@librelist.com] On Behalf
Of JC Brand
Sent: Thursday, April 23, 2015 2:30 AM
To: conversejs@librelist.com
Subject: Re: [conversejs] Prebind issue when logging to 2 sites at the same
time

 

Hi

You can't share a BOSH session between two different separate instances of
converse.js. 

The solution I always suggest and for which I've not found anything better
is to use message carbons to make sure both instances show all the sent and
received messages. 

BTW, I'm still waiting on your feedback on this ticket. 
https://github.com/jcbrand/converse.js/issues/327

JC 

On 20 April 2015 2:54:06 nm. CEST, Gauri Padbidri
<gpadbidri@genius-minds.com> wrote:

Hi JC,

 

I have run into a situation and don't know how to handle it.  I am trying to
use the PREBIND feature to make a user login to 2 sites at the same time : 

 

Following is the test case : 

1.      User visits the site : subdomain1.example.com

2.      User logs in as "testuser" to chat internally, by initially
establishing Strophe Connection (we are using site login to login to XMPP
Server) and then passing the Connection jid, sid and rid to the
Converse.Init as follows : 

connection = new Strophe.Connection(BOSH_URL);

  &n bsp;     connection.connect(username + '@' + chatDomain, password,
function (status) {

            onConnect(status, callback, event);

        });

      function onConnect(status){

                                     if(status === Str
ophe.Status.CONNECTED) {

 

                                                 setCookie(cname,
'jid,sid,rid', 1);// Cookie Value contains JID, SID and RID from the
Connection Object.

 

             converse.initialize({

                    auto_subscribe: false,

                    auto_list_rooms: true,

                    bosh_service_url: BOSH_URL,

                    hide_m uc_server: false,

                    i18n: locales.en,

                    prebind: true,

                    jid: connection.jid,

             &n bsp;      sid: connection._proto.sid,

                    rid: connection._proto.rid,

                    play_sounds: true,

                    show_controlbox_by_default: true,

 &n bsp;                  roster_groups: false,

                    keepalive: true,

                    allow_muc: true

        });

}

                         

3.      Now user logs visits another site : subdomain2.example.com. Here, I
read the DOMAIN Level Cookie I set in subdomain1.example.com and fetch JID,
SID and RID.

4.      4.      Now in subdomain2.example.com page load, I connect to
Strophe as follows : 

connection1 = new Strophe.Connection("http://xmppdomain.com/http-bind");

connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);

5.      In the Callback "onAutoLoginConnect", I get Strophe Disconnected on
subdomain2.example.com and Converse automatically logs out from
subdomain1.example.com (This makes sense as I am trying to acquire the
session from the session already logged in)

 

What should be the SID ad RID in case of subdomain2.example.com ? Can you
tell me where am I going wrong and how can I allow auto login when I have
JID, SID and RID available in subdomain2.example.com

 

Best Regard s,

Gauri Padbidri


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [conversejs] Prebind issue when logging to 2 sites at the same time

From:
Gauri Padbidri
Date:
2015-04-23 @ 13:16
Also, in the same context, can you provide me a detailed steps to implement
it as I have very less time for my release ? Thanks ! 

 

From: Gauri Padbidri [mailto:gpadbidri@genius-minds.com] 
Sent: Thursday, April 23, 2015 4:32 PM
To: 'conversejs@librelist.com'
Subject: RE: [conversejs] Prebind issue when logging to 2 sites at the same
time

 

Hi JC,

 

Thanks for the update. Around the PULL request for the ticket, I have not
been able to intercept the browser close event precisely, hence we have put
this task on a lower priority for now. But, when I am done I will surely
initiate a PULL request for the same.

 

Also, around message_carbons, how does it work ? Meaning both sites having
prebind:true and message_carbon:true would do the trick ? What do I need to
do to get it working apart from configuring my XMPP for XEP - 0280 ? Thanks
!

 

Best Regards,

Gauri Padbidri

 

From: conversejs@librelist.com [mailto:conversejs@librelist.com] On Behalf
Of JC Brand
Sent: Thursday, April 23, 2015 2:30 AM
To: conversejs@librelist.com
Subject: Re: [conversejs] Prebind issue when logging to 2 sites at the same
time

 

Hi

You can't share a BOSH session between two different separate instances of
converse.js. 

The solution I always suggest and for which I've not found anything better
is to use message carbons to make sure both instances show all the sent and
received messages. 

BTW, I'm still waiting on your feedback on this ticket. 
https://github.com/jcbrand/converse.js/issues/327

JC 

On 20 April 2015 2:54:06 nm. CEST, Gauri Padbidri
<gpadbidri@genius-minds.com> wrote:

Hi JC,

 

I have run into a situation and don't know how to handle it.  I am trying to
use the PREBIND feature to make a user login to 2 sites at the same time : 

 

Following is the test case : 

1.      User visits the site : subdomain1.example.com

2.      User logs in as "testuser" to chat internally, by initially
establishing Strophe Connection (we are using site login to login to XMPP
Server) and then passing the Connection jid, sid and rid to the
Converse.Init as follows : 

connection = new Strophe.Connection(BOSH_URL);

  &n bsp;     connection.connect(username + '@' + chatDomain, password,
function (status) {

            onConnect(status, callback, event);

        });

      function onConnect(status){

                                     if(status === Str
ophe.Status.CONNECTED) {

 

                                                 setCookie(cname,
'jid,sid,rid', 1);// Cookie Value contains JID, SID and RID from the
Connection Object.

 

             converse.initialize({

                    auto_subscribe: false,

                    auto_list_rooms: true,

                    bosh_service_url: BOSH_URL,

                    hide_m uc_server: false,

                    i18n: locales.en,

                    prebind: true,

                    jid: connection.jid,

             &n bsp;      sid: connection._proto.sid,

                    rid: connection._proto.rid,

                    play_sounds: true,

                    show_controlbox_by_default: true,

 &n bsp;                  roster_groups: false,

                    keepalive: true,

                    allow_muc: true

        });

}

                         

3.      Now user logs visits another site : subdomain2.example.com. Here, I
read the DOMAIN Level Cookie I set in subdomain1.example.com and fetch JID,
SID and RID.

4.      4.      Now in subdomain2.example.com page load, I connect to
Strophe as follows : 

connection1 = new Strophe.Connection("http://xmppdomain.com/http-bind");

connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);

5.      In the Callback "onAutoLoginConnect", I get Strophe Disconnected on
subdomain2.example.com and Converse automatically logs out from
subdomain1.example.com (This makes sense as I am trying to acquire the
session from the session already logged in)

 

What should be the SID ad RID in case of subdomain2.example.com ? Can you
tell me where am I going wrong and how can I allow auto login when I have
JID, SID and RID available in subdomain2.example.com

 

Best Regard s,

Gauri Padbidri


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: [conversejs] Prebind issue when logging to 2 sites at the same time

From:
paparazzia
Date:
2015-04-23 @ 15:52
Hello,

I'm not sure if it helps, but I have a website with two different domain
name.
Prebinding works as expected (there are two distincts bosh sessions). In my
case, the two domains don't share cookie and http sessions.

The way I see it : if your users are automatically logged and subdomain2
when logged on subdomain1, then you could make your use case work by using
pre-binding.

2015-04-23 15:16 GMT+02:00 Gauri Padbidri <gpadbidri@genius-minds.com>:

> Also, in the same context, can you provide me a detailed steps to
> implement it as I have very less time for my release ? Thanks !
>
>
>
> *From:* Gauri Padbidri [mailto:gpadbidri@genius-minds.com]
> *Sent:* Thursday, April 23, 2015 4:32 PM
> *To:* 'conversejs@librelist.com'
> *Subject:* RE: [conversejs] Prebind issue when logging to 2 sites at the
> same time
>
>
>
> Hi JC,
>
>
>
> Thanks for the update. Around the PULL request for the ticket, I have not
> been able to intercept the browser close event precisely, hence we have put
> this task on a lower priority for now. But, when I am done I will surely
> initiate a PULL request for the same.
>
>
>
> Also, around message_carbons, how does it work ? Meaning both sites having
> prebind:true and message_carbon:true would do the trick ? What do I need to
> do to get it working apart from configuring my XMPP for XEP – 0280 ? Thanks
> !
>
>
>
> Best Regards,
>
> Gauri Padbidri
>
>
>
> *From:* conversejs@librelist.com [mailto:conversejs@librelist.com
> <conversejs@librelist.com>] *On Behalf Of *JC Brand
> *Sent:* Thursday, April 23, 2015 2:30 AM
> *To:* conversejs@librelist.com
> *Subject:* Re: [conversejs] Prebind issue when logging to 2 sites at the
> same time
>
>
>
> Hi
>
> You can't share a BOSH session between two different separate instances of
> converse.js.
>
> The solution I always suggest and for which I've not found anything better
> is to use message carbons to make sure both instances show all the sent and
> received messages.
>
> BTW, I'm still waiting on your feedback on this ticket.
> https://github.com/jcbrand/converse.js/issues/327
>
> JC
>
> On 20 April 2015 2:54:06 nm. CEST, Gauri Padbidri <
> gpadbidri@genius-minds.com> wrote:
>
> Hi JC,
>
>
>
> I have run into a situation a nd don’t know how to handle it.  I am trying
> to use the PREBIND feature to make a user login to 2 sites at the same time
> :
>
>
>
> Following is the test case :
>
> 1.      User visits the site : subdomain1.example.com
>
> 2.      User logs in as “testuser” to chat internally, by initially
> establishing Strophe Connection (we are using site login to login to XMPP
> Server) and then passing the Connection jid, sid and rid to the
> Converse.Init as follows :
>
> connection = new Strophe.Connection(BOSH_URL);
>
>   &n bsp;     connection.connect(username + '@' + chatDomain, password,
> function (status) {
>
>             onConnect(status, callback, event);
>
>          });
>
>       function onConnect(status){
>
>                                      if(status === Str
> ophe.Status.CONNECTED) {
>
>
>
>                                                  setCookie(cname,
> ‘jid,sid,rid 217;, 1);// Cookie Value contains JID, SID and RID from the
> Connection Object.
>
>
>
>              converse.initialize({
>
>                     auto_subscribe: false,
>
>                     auto_list_rooms: true,
>
>                      bosh_service_url: BOSH_URL,
>
>                     hide_m uc_server: false,
>
>                     i18n: locales.en,
>
>                     prebind: true,
>
>      ;                jid: connection.jid,
>
>              &n bsp;      sid: connection._proto.sid,
>
>                     rid: connection._proto.rid,
>
>                     play_sounds: true,
>
>                     show_controlbox_by_default: true,
>
>  &n bsp;                  roster_groups: false,
>
>                     keepalive: true,
>
>                     allow_muc: true
>
>         });
>
> }
>
>
>
> 3.      Now user logs visits another site : subdomain2.example.com… Here,
> I read the DOMAIN Level Cookie I set in subdomain1.example.com and fetch
> JID, SID and RID.
>
> 4.      4.      Now in subdomain2.example.com page load, I connect to
> Strophe as follows :
>
> connection1 = new Strophe.Connection("http://xmppdomain.com/http-bind");
>
> connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);
>
> 5.      In the Callback “onAutoLoginConnect”, I get Strophe *Disconnected*
> on subdomain2.example.com and Converse automatically logs out from
> subdomain1.example.com (This makes sense as I am trying to acquire the
> session from the session already logged in)
>
>
>
> What should be the SID ad RID in case of subdomain2.example.com ? Can you
> tell me where am I going wrong and how can I allow auto login when I have
> JID, SID and RID available in subdomain2.example.com
>
>
>
> Best Regard s,
>
> Gauri Padbidri
>
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>

Re: [conversejs] Prebind issue when logging to 2 sites at the same time

From:
Jc Brand
Date:
2015-04-24 @ 09:59
On Thu, Apr 23, 2015 at 05:52:26PM +0200, paparazzia wrote:
>    Hello,
> 
>    I'm not sure if it helps, but I have a website with two different domain
>    name.
>    Prebinding works as expected (there are two distincts bosh sessions). In
>    my case, the two domains don't share cookie and http sessions.
> 
>    The way I see it : if your users are automatically logged and subdomain2
>    when logged on subdomain1, then you could make your use case work by using
>    pre-binding.

Yep, there's not much else to add.

The point is that you must have a separate BOSH session per domain and that you
must have message carbons enabled.


https://conversejs.org/docs/html/configuration.html?highlight=carbon#message-carbons

So in your converse.initialize call you set "message_carbons: true" and you
then also need to enable it for your XMPP server (which you'll have to google
for).

JC

>    2015-04-23 15:16 GMT+02:00 Gauri Padbidri <[1]gpadbidri@genius-minds.com>:
> 
>      Also, in the same context, can you provide me a detailed steps to
>      implement it as I have very less time for my release ? Thanks !
> 
>       
> 
>      From: Gauri Padbidri [mailto:[2]gpadbidri@genius-minds.com]
>      Sent: Thursday, April 23, 2015 4:32 PM
>      To: '[3]conversejs@librelist.com'
>      Subject: RE: [conversejs] Prebind issue when logging to 2 sites at the
>      same time
> 
>       
> 
>      Hi JC,
> 
>       
> 
>      Thanks for the update. Around the PULL request for the ticket, I have
>      not been able to intercept the browser close event precisely, hence we
>      have put this task on a lower priority for now. But, when I am done I
>      will surely initiate a PULL request for the same.
> 
>       
> 
>      Also, around message_carbons, how does it work ? Meaning both sites
>      having prebind:true and message_carbon:true would do the trick ? What do
>      I need to do to get it working apart from configuring my XMPP for XEP –
>      0280 ? Thanks !
> 
>       
> 
>      Best Regards,
> 
>      Gauri Padbidri
> 
>       
> 
>      From: [4]conversejs@librelist.com [[5]mailto:conversejs@librelist.com]
>      On Behalf Of JC Brand
>      Sent: Thursday, April 23, 2015 2:30 AM
>      To: [6]conversejs@librelist.com
>      Subject: Re: [conversejs] Prebind issue when logging to 2 sites at the
>      same time</ p>
> 
>       
> 
>      Hi
> 
>      You can't share a BOSH session between two different separate instances
>      of converse.js.
> 
>      The solution I always suggest and for which I've not found anything
>      better is to use message carbons to make sure both instances show all
>      the sent and received messages.
> 
>      BTW, I'm still waiting on your feedback on this ticket.
>      [7]https://github.com/jcbrand/converse.js/issues/327
> 
>      JC
> 
>      On 20 April 2015 2:54:06 nm. CEST, Gauri Padbidri <[8]gpadbidri@genius
>      -minds.com> wrote:
> 
>      Hi JC,
> 
>       
> 
>      I have run into a situation a nd don’t know how to handle it.  I am
>      trying to use the PREBIND feature to make a user login to 2 sites at the
>      same time :
> 
>       
> 
>      Following is the test case :
> 
>      1.      User visits the site : [9]subdomain1.example.com
> 
>      2.      User logs in as “testuser” to chat internally, by initially
>      establishing Strophe Connection (we are using site login to login to X
>      MPP Server) and then passing the Connection jid, sid and rid to the
>      Converse.Init as follows :
> 
>      connection = new Strophe.Connection(BOSH_URL);
> 
>        &n bsp;     connection.connect(username + '@' + chatDomain, password,
>      function (status) {
> 
>                  onConnect(status, callback, event);
> 
>               });
> 
>            function onConnect(status){
> 
>                                           if(status === Str
>      ophe.Status.CONNECTED) {
> 
>       
> 
>                                                       setCookie(cname,
>      ‘jid,sid,rid 217;, 1);// Cookie Value contains JID, SID and RID from
>      the Connection Object.
> 
>       
> 
>                   converse.initialize({
> 
>                          auto_subscribe: false,
> 
>                          auto_list_rooms: true,
> 
>                           bosh_service_url: BOSH_URL,
> 
>                          hide_m uc_server: false,
> 
>                          i18n: locales.en,
> 
>                          prebind: true,
> 
>           ;                jid: connection.jid,
> 
>                   &n bsp;      sid: connection._proto.sid,
> 
>                          rid: connection._proto.rid,
> 
>                          play_sounds: true,
> 
>                          show_controlbox_by_default: true,
> 
>       &n bsp;                  roster_groups: false,
> 
>                           keepalive: true,
> 
>                          allow_muc: true
> 
>              });
> 
>      }
> 
>                              
> 
>      3.      Now user logs visits another site : [10]subdomain2.example.com…
>      Here, I read the DOMAIN Level Cookie I set in [11]subdomain1.example.com
>      and fetch JID, SID and RID.
> 
>      4.      4.      Now in [12]subdomain2.example.com page load, I connect
>      to Strophe as follows :
> 
>      connection1 = new
>      Strophe.Connection("[13]http://xmppdomain.com/http-bind");
> 
>      connection1.attach(_jid, _sid, _rid, onAutoLoginConnect);
> 
>      5.      In the Callback “onAutoLoginConnect”, I get Strophe Disconnected
>      on [14]subdomain2.example.com and Converse automatically logs out from
>      [15]subdomain1.example.com (This makes sense as I am trying to acquire
>      the session from the session already logged in)
> 
>       
> 
>      What should be the SID ad RID in case of [16]subdomain2.example.com ?
>      Can you tell me where am I going wrong and how can I allow auto login
>      when I have JID, SID and RID available in [17]subdomain2.example.com
> 
>       
> 
>      Best Regard s,
> 
>      Gauri Padbidri
> 
>      --
>      Sent from my Android device with K-9 Mail. Please excuse my brevity.
> 
> References
> 
>    Visible links
>    1. mailto:gpadbidri@genius-minds.com
>    2. mailto:gpadbidri@genius-minds.com
>    3. mailto:conversejs@librelist.com
>    4. mailto:conversejs@librelist.com
>    5. mailto:conversejs@librelist.com
>    6. mailto:conversejs@librelist.com
>    7. https://github.com/jcbrand/converse.js/issues/327
>    8. mailto:gpadbidri@genius-minds.com
>    9. http://subdomain1.example.com/
>   10. http://subdomain2.example.com/
>   11. http:// /subdomain1.example.com
>   12. http://subdomain2.example.com/
>   13. http://xmppdomain.com/http-bind
>   14. http://subdomain2.example.com/
>   15. http://subdomain1.example.com/
>   16. http://subdomain2.example.com/
>   17. file:///tmp/h ttp:/subdomain2.example.com