<?php setcookie( "myvalue1", "myvalue2", time()+3600, "/", "www.navioo.com", 0 ); ?> <html> <head> <title>Setting and printing a cookie value</title> </head> <body> <?php if ( isset( $myvalue1 ) ) print "<p>Hello again, your value is $myvalue1</p>"; else print "<p>Hello you. This may be your first visit</p>"; ?> </body> </html>