Cookie Array Function
$v){ if($v == '' || is_null($v) || $v == 0){ unset($cookieArr[$k]); } } //encode data again for cookie $cookie_data = json_encode($cookieArr); //need to limit cookie size. Default is set to 4Kb. If it is greater than limit. it then gets reset. $cookie_data = mb_strlen($cookie_data) >= $limit ? '' : $cookie_data; //destroy cookie setcookie($cookie_name, '', time()-3600 , '/'); //set co..