Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
Cross domain log-in not working
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.