Zitat von
marcaust
Setzt das Script auch die neuen SameSite Cookies?
nein noch nicht.
es sollte allerdings relativ einfach zu nutzen sein:
PHP example for SameSite=None; Secure
As of PHP 7.3.0 the setcookie() method supports the SameSite attribute in its options and will accept None as a valid value.
PHP-Code:
// Set a same-site cookie for first-party contexts
setcookie('cookie1', 'value1', ['samesite' => 'Lax']);
// Set a cross-site cookie for third-party contexts
setcookie('cookie2', 'value2', ['samesite' => 'None', 'secure' => true]);
For earlier versions of PHP, you can also set the header() directly:
PHP-Code:
// Set a same-site cookie for first-party contexts
header('Set-Cookie: cookie1=value1; SameSite=Lax', false);
// Set a cross-site cookie for third-party contexts
header('Set-Cookie: cookie2=value2; SameSite=None; Secure', false);
Quelle: https://github.com/GoogleChromeLabs/.../master/php.md