1.20.x user.module | user_cookie_delete($cookie_name) |
Delete a visitor information cookie.
Parameters
$cookie_name: A cookie name such as 'homepage'.
File
- modules/
user/ user.module, line 3355 - Enables the user registration and login system.
Code
function user_cookie_delete($cookie_name) {
setrawcookie('Backdrop.visitor.' . $cookie_name, '', REQUEST_TIME - 3600, '/');
}