/ Published in: PHP
Important: this snipplet has moved to Github.
Expand |
Embed | Plain Text
// Programmatically logs out the current user global $user; $tmp = NULL; user_module_invoke('logout', $tmp, $user); $user = drupal_anonymous_user();
Comments
Subscribe to comments
You need to login to post a comment.

thank you, this really helped me!