<?php
setcookie("key","1000");//1st parameter is used to store the value and second one is used to represent how much time the cookie needed to be in our system
echo $_COOKIE['key']; //this code is used to display cookie
?>
setcookie("key","1000");//1st parameter is used to store the value and second one is used to represent how much time the cookie needed to be in our system
echo $_COOKIE['key']; //this code is used to display cookie
?>