i create cookies that contain multiple values using Jquery cookie plugin e.g, $.cookie('biz', ['foo', 'bar', 'lact'], {path: '/', expire: 7}); from this url http://localhost/categories/educatio...r/universities and use a.remove('foo'); to remove the value after splitting, before removing value i count the number of value and if one remains to delete the cookie 'biz' entirely, even though i could remove the values, one always remains which cannot be remove from this url but only from http://localhost/categories


i use .htaccess to rewrite the url,

function of remove is :
Array.prototype.remove=function(s){
var i = this.indexOf(s);
if(i != -1) this.splice(i, 1);
}

please help