setrawcookie()

It sends an HTTP cookie without URL encoding the cookie value

Example

<?php
setrawcookie(“time”,time());
echo $_COOKIE[‘time’];
?>

Output

1337938950

Share