Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Send a cookie
<?php setcookie(    string $name,    string $value = "",    int $expires_or_options = 0,    string $path = "",    string $domain = "",    bool $secure = false,    bool $httponly = false): bool
<?php <?php declare(strict_types=1);



setcookie('MyCookie', 'FirstValue', 1515745923, '/hello/', 'example.com', true, true);

setcookie('MyCookie', 'MyValue', 1515745923, '/hello/', 'example.com', true, true);
<?php <?php declare(strict_types=1);



setcookie('MyCookie', 'FirstValue', 1515745923, '/hello/', 'example.com', true, true);

setcookie('MyCookie', 'MyValue', 1515745923, '/hello/', 'example.com', true, true);