function user_cookie_delete in Drupal 7
Same name and namespace in other branches
- 8 core/modules/user/user.module \user_cookie_delete()
- 9 core/modules/user/user.module \user_cookie_delete()
- 10 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 4051 - Enables the user registration and login system.
Code
function user_cookie_delete($cookie_name) {
setrawcookie('Drupal.visitor.' . $cookie_name, '', REQUEST_TIME - 3600, '/');
}