Submitted by newaction on Tue, 2012-07-10 08:57
// Programmatically logs out the current user
global $user;
$tmp = NULL;
session_destroy();
user_module_invoke('logout', $tmp, $user);
$user = drupal_anonymous_user();
- Login to post comments