Setting and Printing a Cookie Value : Cookie : Cookie Session PHP Source Code


PHP Source Code » Cookie Session » Cookie »

 

Setting and Printing a Cookie Value



<?php
setcookie"myvalue1""myvalue2", time()+3600"/""www.navioo.com");
?>
<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>


           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Cookie Session
» Cookie