? files ? sites/localhost.c-drupal ? sites/localhost.new-c-drupal Index: includes/session.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/session.inc,v retrieving revision 1.33 diff -u -F^f -r1.33 session.inc --- includes/session.inc 24 Oct 2006 15:31:35 -0000 1.33 +++ includes/session.inc 25 Oct 2006 03:45:19 -0000 @@ -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); }