Skip to content
Snippets Groups Projects
Commit 860b79b6 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

- Patch #87372 by drumm: Broken login

parent 87f13591
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment