I am trying to setup a single sign-on from our main website which should also take care of the sign-on into Zencart. What should I do to ensure when users logon and then go to our shop (www.ncrs.org/shop) are logged in the shop as well?
Is there an API I can use. I've tryed to start a session using the session functionality of ZenCart:
But this does not seems to work...Code:include_once('shop/includes/functions/functions_general.php'); include_once('shop/includes/init_includes/init_sessions.php'); zen_session_start();
I have also tried to set the cookie variable zenid and session variables customer_id and customer_ip_address and inserted a corresponding row in the sessions table with the session ID and expire time (time() + (365*24*3600)) although I don't know what to fill into the value column.


Reply With Quote
