I am working on an exercise to get familiar with the setting and deletion of cookies. Naturally, I have set it in a phony bakery.
I have tried to follow the Hamper model for cookies, and have been able to store them onto the console. But for some reason, every method that I have tried to delete them from the local server, through Javascript, has failed. I have tried Cookies.expire(), Cookies.set((key,null)).get(key), etc. None of them seem to work, even as I restart the server.
For your convenience, I have attached a Github repository below.
There is a function in confections2.js
Which is not correct syntax. Instead it should be
Then change in index.html
Then change the javascript function - to include reload as well as function name. It seems that clear() produces no results :(
};
It resets the values to null and 0. But it actually does not delete cookies. You can modify like this -