I have to set a cookie in magento, say current_city in OPC. I have set the same via Magento in built cookie function.
I wanted to modify the value and expiry of the cookie in front end when the city value is changed from a dropdown.
I tried to use following magento js function to update the cookie.
But the cookie is not getting updated or deleted.
What might be the issue?