Replies: 0
The following code makes sessions and cart act weird. There is only one session. If i open the website in a new tab (incognito or other browser) there will be no new session, the old one’s session_expiry gets refreshed. The cart is acting like its global between users, if i add a product on incognito tab, it will be also added on the normal one.
$.ajax({
url: API_BASE_URL+'/products/'+PROD_ID+'?consumer_key=MY_CONSUMER-KEY&consumer_secret=MY_COSUMER_SECRET',
type: "GET",
crossDomain: true,
jsonpCallback: "myCallback",
success: function(data){
//handle data
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
//handle error
}
})
Commenting out this code and the issues stops. If searched many topics/sites for a solution but there seems to be none. WordPress and Woocommerce are updated to the latest versions.
This the closest github issue i could find , its kinda old and it didnt work out for me.