Rockwell Rice
Rockwell Rice

Reputation: 3002

Cannot remove twitter cookie using jQuery

Working on some cookie removal issues. There are some cookies coming from Twitter and I cannot seem to get them to delete. In my code, I am adding in the correct path and domain to the remove code.

This is what is getting called

Cookies.remove(names[idx][0], {path: '/', domain: names[idx][1]});

Which, for this specific cookie, would look like this

Cookies.remove('correct_cookie_name_here', {path: '/', domain: '.twitter.com'});

But the cookie will not go away. It has a value of 0, but if I try to set it to -1 to expire or null its value it does not go away either. I did notice that it has a checkmark in the Secure column but couldn't find anything about that. Otherwise, I am not sure why this won't go away. This code does work for most of the cookies I am encountering so there is something with this cookie specifically that it will not go away.

Upvotes: 0

Views: 118

Answers (0)

Related Questions