Index: modules/user/user.module =================================================================== RCS file: /cvs/drupal/drupal/modules/user/user.module,v retrieving revision 1.745.2.16 diff -u -p -r1.745.2.16 user.module --- modules/user/user.module 14 Aug 2007 06:50:41 -0000 1.745.2.16 +++ modules/user/user.module 23 Aug 2007 20:02:48 -0000 @@ -154,11 +154,13 @@ function user_save($account, $array = ar sess_destroy_uid($account->uid); } - // If the password changed, delete all open sessions and recreate - // the current one. + // If the password changed, delete all open sessions of this user. Recreate + // the session if the affected user is the current user. if (!empty($array['pass'])) { sess_destroy_uid($account->uid); - sess_regenerate(); + if ($account->uid == $GLOBALS['user']->uid) { + sess_regenerate(); + } } // Refresh user object