bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] )
time()+60*60*24*30
<?php$value = 'Cookie Inhalt';setcookie("TestCookie", $value, time()+3600); /* verfällt in 1 Stunde */?>