<?php $params = [ "samesite" => "Lax", "expires_or_options" => time() + 3600, "path" => "/", "domain" => "", "secure" => false, "httponly" => true, ]; function fakeSetCookie( string $name, string $value = "", int $expires_or_options = 0, string $path = "", string $domain = "", bool $secure = false, bool $httponly = false, string $samesite = "Strict", ) { var_dump([ "name" => $name, "value" => $value, "expires_or_options" => $expires_or_options, "path" => $path, "domain" => $domain, "secure" => $secure, "httponly" => $httponly, "samesite" => $samesite, ]); } fakeSetCookie("testName", "testValue", ...$params);
You have javascript disabled. You will not be able to edit any code.