I have already read other posts but I'm not working on localhost. The code below works on safari ie and firefox but chrome fails. It looks like it is completely ignored. Any suggestion is welcome.
Here is the code.
document.cookie = "lang="+$('#account_lang').val()+"; path=/; samesite=none;";