Answers for "how can you create, access and delete a cookie in php with the help of an example."

PHP
2

php remove cookie

if (isset($_COOKIE['key'])) {
    unset($_COOKIE['key']);
    setcookie('key', '', time() - 3600, '/'); // empty value and old timestamp
}
Posted by: Guest on May-28-2021

Code answers related to "how can you create, access and delete a cookie in php with the help of an example."

Browse Popular Code Answers by Language