Created
January 23, 2012 16:37
-
-
Save arturo-c/1664144 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/www/sites/all/modules/contrib/services/resources/user_resource.inc b/www/sites/all/modules/contrib/services/resources/user_resource.inc | |
index 1638088..78a3364 100644 | |
--- a/www/sites/all/modules/contrib/services/resources/user_resource.inc | |
+++ b/www/sites/all/modules/contrib/services/resources/user_resource.inc | |
@@ -401,10 +401,10 @@ function _user_resource_logout() { | |
watchdog('user', 'Session closed for %name.', array('%name' => theme('placeholder', $user->name))); | |
- // Destroy the current session: | |
- session_destroy(); | |
$null = NULL; // Only variables can be passed by reference workaround | |
user_module_invoke('logout', $null, $user ); | |
+ // Regenerate the session. | |
+ sess_regenerate(); | |
// Load the anonymous user | |
$user = drupal_anonymous_user(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment