something.php : (all lines between dashes) -------------------------------------------- <?php setcookie('cookietest', 'php', time()+3600, '/', 'localhost'); ?>
Check the cookie. Make sure to run this script from http://localhost/something.php (root path) --------------------------------------------
something.php : (all lines between dashes) ------- ------- ------- ------- ------- -- 'cookietest' , 'php', time()+3600, '/', 'localhost');
-------
<?php
setcookie(
?>
Check the cookie. Make sure to run this script from http:// localhost/ something. php (root path) ------- ------- ------- ------- ------- --
-------