28 Program to delete cookies in PHP

Program:

<?php

   

    setcookie("name",null,time()-3600);

    // Set the expiration time 1 hour ago

    echo "Cookie Deleted ";

   

?>


Output:

Program to delete cookies in PHP

Previous
Next Post »