diff options
author | Rick Ellis <rick.ellis@ellislab.com> | 2009-02-17 20:54:14 +0100 |
---|---|---|
committer | Rick Ellis <rick.ellis@ellislab.com> | 2009-02-17 20:54:14 +0100 |
commit | 9c86ce5ca11c2d7471d016a7195254c1934472e2 (patch) | |
tree | 388730370a1e9a0d157dc5c6233949cf08446b5d | |
parent | c7d12d369209bd9c7abba8e6536e3a7fe66ec172 (diff) |
Updated the destroy function to only remove the cart session and not kill the general session data
-rw-r--r-- | system/libraries/Cart.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index a0b782bb0..61223c597 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php @@ -517,7 +517,7 @@ class CI_Cart { $this->_cart_contents['cart_total'] = 0; $this->_cart_contents['total_items'] = 0; - $this->CI->session->sess_destroy(); + $this->CI->session->unset_userdata('cart_contents'); } |