Currently, I am utilizing Angular cookies to store information. This is how I include information.
oItems
represents the JavaScript array of objects.
Angular Version 1.4.7
$cookies.putObject("oItems", oItems, [{path: '/', expires: exp, domain: 'alpha.domain.com'}])
And the method to fetch it is:
$cookies.getObject("oItems")
These functions properly when I am on the URL alpha.domain.com
Now, when I attempt to access the cookie at alpha.domain.com/cart, I am able to retrieve the values. The issue arises when I remove an element from the "oItem" array. On alpha.domain.com/cart, it displays only one item, whereas on alpha.domain.com, it shows 2 items.
Could you please help me identify the possible cause of this problem?