设置cookie
<?php setcookie( "name", "value", "past_timestamp", "path", "domain" ); ?>
手册:
http://php.net/manual/zh/function.setcookie.php