From 9c86ce5ca11c2d7471d016a7195254c1934472e2 Mon Sep 17 00:00:00 2001 From: Rick Ellis Date: Tue, 17 Feb 2009 19:54:14 +0000 Subject: Updated the destroy function to only remove the cart session and not kill the general session data --- system/libraries/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') 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'); } -- cgit v1.2.3-24-g4f1b