I’ve managed to get this working on 6.4.3
I replaced the samesite_setcookie function for the following code:
function samesite_setcookie($name, $value, array $options) {
setcookie($name, $value,$options);
}
It looks like the original code was wiping out other cookies set in the same request. Just replaced with the stock php setcookie function.