php - Integrate guest session from opencart to wordpress -



php - Integrate guest session from opencart to wordpress -

i developed basic plugin allow me retrieve user info, including current info in cart, when user logged opencart, wordpress. in way can show info when user in wordpress. think way share - or simulate - session between these system.

the plugin here: https://github.com/sarca/op2wp

what need done improve plugin capture invitee info. know opencart handle session in way:

class session { public $data = array(); public function __construct() { if (!session_id()) { ini_set('session.use_cookies', 'on'); ini_set('session.use_trans_sid', 'off'); session_set_cookie_params(0, '/'); session_start(); } $this->data =& $_session; } function getid() { homecoming session_id(); } }

how can session cookie in order know invitee info? wordpress installed in root of public html directory , opencart in subfolder.

php wordpress session opencart

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -