Commit e1259a18 by tetiana yaremko

cart session fixed

parent 29f785bb
Showing with 2 additions and 1 deletions
......@@ -58,10 +58,11 @@ class Auth extends CI_Controller
}
// echo '<pre>'; echo $new_cart; echo '</pre>';
// die();
$this->cmodel->set_user_cart($this->session->userdata('email'), $new_cart);
$this->session->set_userdata("role_id", $user_role);
$this->session->set_userdata($this->auth->get_data());
$this->session->set_userdata("logged_in", true);
$this->cmodel->set_user_cart($this->session->userdata('email'), $new_cart);
......
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