/* bool setcookie ( string $name [, string $value = "" [, int $expire = 0 [,
string $path = "" [, string $domain = "" [, bool $secure = false [,
bool $httponly = false ]]]]]] ) */
$value = 'your website cookie';
// the cookie will expire in 1 hour
setcookie("MyWebsiteCookie", $value, time() + 3600, "/~your-path/", "mywebsite.com", 1);
// 1 = the cookie will only be set if a secure connection exists HTTPS
/*
run:
*/