I want to use jQuery to delete cookies; I have tried this:
$.cookie(\'name\', \'\', { expires: -1 });
But when I refresh the page, the cookie
it is the problem of misunderstand of cookie. Browsers recognize cookie values for not just keys also compare the options path & domain. So Browsers recognize different value which cookie values that key is 'name' with server setting option(path='/'; domain='mydomain.com') and key is 'name' with no option.