I'm currently working on a new web site using Commerce API and have an SSP page registered as a touch-point for login/register.
With a returning customer, I pass a customer object to my login.ss handler. The hander logs the customer in using shoppingsession logIn(customer) and returns the response redirect URL. I forward the user to the redirect URL and they're now recognised and logged in on both website and shopping domains.
With new customers, I pass registration data as a customer object to register.ss. The script registers a new account using shoppingsession registerCustomer(customer) and returns the response redirect URL. I forward the user to the redirect URL and they're now recognised and logged in on the web domain - but on the shopping domain, isLoggedIn() and isRecognized() both return false.
Has anyone else encountered this? Our account has multiple web sites and this instance is site ID 2. Looking at the redirect URL after registration, there's an n=2 parameter on the base redirect URL, but not on the following checkout domain URL. I've tried adding a urlencoded n parameter in the checkout domain, but this throw an error - which makes me suspicious as to whether the API supports multiple sites.