Learning PHP and MySQL
Example 13-3 Destroying a cookie by expiring it in the recent past
<?php
//remember that setcookie must come before any other line that generates output setcookie("username","", time()-10 );
echo 'Rosebud.';
?>
Example 13-3 returns:
Rosebud.
Posted by on 09/25 at 11:25 AM
Next entry: Example 13-4 Using HTTP authentication with a PHP script
Previous entry: Example 13-2 Viewing the username cookie