function user_cookie_delete
Same name in other branches
- 9 core/modules/user/user.module \user_cookie_delete()
- 8.9.x core/modules/user/user.module \user_cookie_delete()
- 10 core/modules/user/user.module \user_cookie_delete()
- 11.x core/modules/user/user.module \user_cookie_delete()
Delete a visitor information cookie.
Parameters
$cookie_name: A cookie name such as 'homepage'.
1 call to user_cookie_delete()
- openid_user_logout in modules/
openid/ openid.module - Implements hook_user_logout().
File
-
modules/
user/ user.module, line 4114
Code
function user_cookie_delete($cookie_name) {
setrawcookie('Drupal.visitor.' . $cookie_name, '', REQUEST_TIME - 3600, '/');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.