How can the issue of persistent cookies not being deleted upon logout be addressed in PHP?

Issue: Persistent cookies are not deleted upon logout, which can lead to security vulnerabilities and privacy concerns. To address this issue in PHP, you can unset the cookie and set its expiration time to a past value when the user logs out.

// Unset the cookie and set its expiration time to a past value
setcookie('cookie_name', '', time() - 3600, '/');