Commit 48929eba authored by Dries's avatar Dries

- Patch #37738 by Junyor: fixed problem with Drupal not properly unsetting $user on logout.

parent e900d286
......@@ -956,7 +956,9 @@ function user_logout() {
// Destroy the current session:
session_destroy();
module_invoke_all('user', 'logout', NULL, $user);
unset($user);
// We have to use $GLOBALS to unset a global variable:
unset($GLOBALS['user']);
drupal_goto();
}
......
......@@ -956,7 +956,9 @@ function user_logout() {
// Destroy the current session:
session_destroy();
module_invoke_all('user', 'logout', NULL, $user);
unset($user);
// We have to use $GLOBALS to unset a global variable:
unset($GLOBALS['user']);
drupal_goto();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment