? modules/user/.svn ? modules/user/translations Index: modules/user/user.pages.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.pages.inc,v retrieving revision 1.11.2.2 diff -u -p -r1.11.2.2 user.pages.inc --- modules/user/user.pages.inc 16 Sep 2009 17:54:20 -0000 1.11.2.2 +++ modules/user/user.pages.inc 31 Mar 2010 22:47:51 -0000 @@ -148,6 +148,10 @@ function user_logout() { // Destroy the current session: session_destroy(); + // Restore the custom session save handler which is destroyed by + // session_destroy() due to a PHP bug. + // @see http://bugs.php.net/bug.php?id=32330 + session_set_save_handler('sess_open', 'sess_close', 'sess_read', 'sess_write', 'sess_destroy_sid', 'sess_gc'); // Only variables can be passed by reference workaround. $null = NULL; user_module_invoke('logout', $null, $user);