- Patch #87372 by drumm: Broken login

5.x
Kjartan Mannes 2006-10-25 09:52:53 +00:00
parent 87f1359158
commit 860b79b644
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}