Create cookies in php from iframe

In this post you will find the code to create cookies in iframe in php language

setcookie("variable_name", "variable_value", [
    'expires' => time() + 86400,
    'path' => '/',
    'domain' => 'iframedomain.com',
    'secure' => true,
    'httponly' => true,
    'samesite' => 'None',
	]);