Answers for "how to delete all cookiew in php"

PHP
3

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
0

remove cookies php

unset($_COOKIE['hello']);
Posted by: Guest on November-14-2020

Code answers related to "how to delete all cookiew in php"

Browse Popular Code Answers by Language