Answer the question
In order to leave comments, you need to log in
Why doesn't expires work in cookies?
The site has favorites, it has a counter and a link.
The link is stored in $.cookieStorage.
At
var storageCookie = $.cookieStorage;
function wishlistCookie(item) {
if(storageCookie.isSet('wishlist_items.' + item)) {
storageCookie.setPath('/').remove('wishlist_items.' + item);
} else {
storageCookie.setPath('/').set('wishlist_items.' + item, {expires= 7});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question