diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2006-10-25 09:52:53 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2006-10-25 09:52:53 +0000 |
commit | 860b79b6446e0cd60f7e93a7be96c3ce94a668b0 (patch) | |
tree | 01a9aef7ca97dcab368ea00d5e6860d56904f076 /includes/session.inc | |
parent | 87f1359158e847704e45dd0859c2d680c50fa2e4 (diff) | |
download | brdo-860b79b6446e0cd60f7e93a7be96c3ce94a668b0.tar.gz brdo-860b79b6446e0cd60f7e93a7be96c3ce94a668b0.tar.bz2 |
- Patch #87372 by drumm: Broken login
Diffstat (limited to 'includes/session.inc')
-rw-r--r-- | includes/session.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/session.inc b/includes/session.inc index 4c939ccac..7b64dbbaf 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -84,7 +84,6 @@ function sess_write($key, $value) { */ function sess_regenerate() { $old_session_id = session_id(); - session_regenerate_id(); // We code around http://bugs.php.net/bug.php?id=32802 by destroying // the session cookie by setting expiration in the past (a negative @@ -95,6 +94,8 @@ function sess_regenerate() { setcookie(session_name(), '', time() - 42000, '/'); } + session_regenerate_id(); + db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'", session_id(), $old_session_id); } |