setcookie("username", "JohnDoe");
setcookie("username", "JaneDoe", time() + 3600);
setcookie("username", "", time() - 3600);This will delete the cookie named "username" by setting its value to an empty string and setting its expiration time to a past time (3600 seconds ago). PHP Cookie Make is a built-in feature of PHP, so it doesn't require a separate package or library.