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
Post a Comment