javascript - remove Cookie using jquery not working -


i have 2 cookies in js file , want remove them.

i have tried code below not working

 $.removecookie('filter', { path: '/home/' });  $.removecookie('pfilter', { path: '/home/' }); 

i have tried below null cookies, not working.

thanks help

$.cookie('filter',null, { path: '/home/' }); 

it might depend on path cookie using. if goto chrome developer tools , check path column under resources > cookies > path.

enter image description here

you might using generic / path instead of /home/. give code below try.

to delete cookie jquery set value null:

$.removecookie('filter', { path: '/' }); 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -