Commit 860b79b6 authored by Kjartan's avatar Kjartan

- Patch #87372 by drumm: Broken login

parent 87f13591
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment