Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove cookie

if (isset($_COOKIE['key'])) {
    unset($_COOKIE['key']);
    setcookie('key', '', time() - 3600, '/'); // empty value and old timestamp
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #remove #cookie
ADD COMMENT
Topic
Name
6+9 =