Commit ec4fc758 by tetiana yaremko

cart session fixed

parent 8cbcab3f
Showing with 2 additions and 1 deletions
......@@ -46,9 +46,10 @@ class Auth extends CI_Controller
} elseif ($status == ERR_EMAIL_NOT_ACTIVE) {
$this->session->set_flashdata("error", "Email is not active");
} else {
$user_role = $this->auth->user_role();
$data=(object)$this->cart->contents();
$this->cmodel->set_user_cart($this->session->userdata('email'), $data);
$user_role = $this->auth->user_role();
$this->session->set_userdata("role_id", $user_role);
$this->session->set_userdata($this->auth->get_data());
$this->session->set_userdata("logged_in", true);
......
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