cookies

cookies

I have a JSON.parse(Cookies.get and a Cookies.set within an onclick function. I also have a JSON.parse(Cookies.get for the same cookie in a different onclick function. If I do the first onclick then the second onclick on the same page the second one isn't picking up the new version of the cookie unless the page is refreshed. Is there a way of forcing the second JSON.parse(Cookies.get to pick up the new version of the cookie without a page refresh? Thanks