Setting cookie via javascript, but it isn't set in Safari.
Im making online shopping that will update the items everywhere automatically. Example: when you open 2tab or more, 1tab for product detail, 1tab for checkout page, they will update everywhere when there is a change to the shopping cart. It uses cookie, im setting cookie in JavaScript, then get it in php. And there is no problem in Firefox, Chrome, Opera, and IE10. Only Safari that make me confused. you can try this:
this is one of the codes :
document.cookie = 'countedPrice=' + countedPrice + '; expires=' + now.toGMTString() + '; path=/';
Need help! Thanks man!