<?php use Symfony\Component\HttpFoundation\Cookie; $r = require __DIR__.'/common.inc'; $r->headers->setCookie(new Cookie('CookieSamesiteStrictTest', 'StrictValue', 0, '/', null, false, true, false, Cookie::SAMESITE_STRICT)); $r->sendHeaders();
info at phpclasses dot org