session_start();

öncesine aşağıdaki kodu ekleyip deneyebilirsiniz.

header('Set-Cookie: cross-site-cookie=bar; SameSite=None; Secure');