- They share the database and both systems uses the OpenCart installation customer table for its users (users in this case are what opencart call customers, not the administrator users).
- My system only checks the customer_id $_SESSION variable to autorize users
- My system sets these $_SESSION variables at login: language, currency, country_id, zone_id, cart and customer_id
- I use the following lines when I start a session in the other system:
Code: Select all
if (!session_id()) { ini_set('session.use_cookies', 'On'); ini_set('session.use_trans_sid', 'Off'); session_set_cookie_params(0, '/'); session_start(); }
I'm building a system to be run parallell with an OpenCart installation and want the two systems to be "single sign-on".
Who is online
Users browsing this forum: No registered users and 19 guests