I created a chrome extension and from popup.js I called PHP script (Using Xhttprequest) that reads the cookie. Like this:
$cookie_name = \"mycookie\"; if(is
>= PHP 7.3 setcookie('key', 'value', ['samesite' => 'None', 'secure' => true]); < PHP 7.3 exploit the path setcookie('key', 'value', time()+(7*24*3600), "/; SameSite=None; Secure"); Emitting javascript echo "";