View Full Version : deleting cookies

07-09-2011, 04:59 PM
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/education_center/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 :
var i = this.indexOf(s);
if(i != -1) this.splice(i, 1);

please help