Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2007 at 20:51 UTC
Updated:
23 Aug 2007 at 11:33 UTC
Log in from two different browsers, edit and save your account in one (don't change the password), and you become logged out in the other.
In user_save() there is this code:
// If the password changed, delete all open sessions and recreate
// the current one.
if (isset($array['pass'])) {
sess_destroy_uid($account->uid);
sess_regenerate();
}
However, when the user edit form is submitted, $array['pass'] is set (but empty), so the session is regenerated, even though the password doesn't change.
| Comment | File | Size | Author |
|---|---|---|---|
| user.module_73.patch | 648 bytes | john morahan |
Comments
Comment #1
drummCommitted to 5.x.
Applies to HEAD.
Comment #2
gábor hojtsyThanks, committed!
Comment #3
(not verified) commented