I want to use one cookie for all my pages and I want to update this cookie for all pages also. It will be used in layout as a theme value.
I have created a cookie named as theme by using javascript method;
$.cookie("theme", "skin-blue");
And checked the cookie whether is saved or not by using;
document.cookie "theme=skin-blue"
When i wanna delete the cookie by using it returns false;
$.removeCookie("theme") false
Can you help me to solve the issue? Is there anyway to delete or clear or cookies? Thanks.
Note: This method works for one page but not for all pages. In other pages it creates new cookie as same name so i cannot update the related one.
$.removeCookie("theme") falsewas going to do?