Commit 5be99c28 by tetiana yaremko

cart session fixed

parent ebf02104
Showing with 2 additions and 0 deletions
...@@ -49,6 +49,8 @@ class Auth extends CI_Controller ...@@ -49,6 +49,8 @@ class Auth extends CI_Controller
$user_role = $this->auth->user_role(); $user_role = $this->auth->user_role();
$data=$this->cart->contents(); $data=$this->cart->contents();
echo '<pre>'; echo $data; echo '</pre>';
die();
$this->cmodel->set_user_cart($this->session->userdata('email'), array('new_cart'=>$data)); $this->cmodel->set_user_cart($this->session->userdata('email'), array('new_cart'=>$data));
$this->session->set_userdata("role_id", $user_role); $this->session->set_userdata("role_id", $user_role);
$this->session->set_userdata($this->auth->get_data()); $this->session->set_userdata($this->auth->get_data());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment