Page 1 of 1

how to forward login between 2 zone

Posted: 20 Feb 2014, 15:41
by grhwood
Hi,

I have 2 zone: zone1 and zone2. zone1 is public zone, users send LoginRequest to zone1. After a successfull login to zone1, I call

Code: Select all

sfsApi.login(session, username, "", "zone2", new SFSObject(), false)


to forward user to zone2. I configured zone2 to use custom login but no login event was sent to zone2 extension.

Is there anyway to have custom login in zone2 in this scenario ?

Thanks,

Re: how to forward login between 2 zone

Posted: 20 Feb 2014, 16:09
by Lapo
You can't login 2 zones with the same connection.
A zone is the container of your whole application. Everything should be running in there.

If your application really requires two Zones at the same time you may need to choose between:

1- rethinking the application to make use of a single Zone
2- using two connections to access the two Zones

Unless you really need #2 I would definitely prefer #1 because it's much easier to implement, especially on the client side.

cheers