setcookie()

It sends an HTTP cookie to a client

Example

<?php
setcookie(“time”,time());
echo $_COOKIE['time'];
?>

Output

1337938449