I have set cookie using setcookie function.
<body>
<?PHP
SetCookie("test", "fun");
?>
<form method=post action="test.php">
click here to get the cookie value<br>
<input type=submit name="Click here">
</form>
</body>
and then i am retriving the cookie in test.php file. This works fine at the first time. while i am trying it is not giving the expected output. For this do i need to expire the previous cookie. If so pls tell how to expire the cookie.