1 user.module user_cookie_delete($cookie_name)

Delete a visitor information cookie.

Parameters

$cookie_name: A cookie name such as 'homepage'.

File

core/modules/user/user.module, line 3457
Enables the user registration and login system.

Code

function user_cookie_delete($cookie_name) {
  setrawcookie('Backdrop.visitor.' . $cookie_name, '', REQUEST_TIME - 3600, '/');
}