Skip to content
Snippets Groups Projects
Commit b63d529a authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #12515 by Goba: fixed problem with cookies not being set properly,...

- Patch #12515 by Goba: fixed problem with cookies not being set properly, causing users getting logged out.
parent bd6ae693
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
......@@ -807,11 +807,6 @@ function user_login($edit = array(), $msg = '') {
user_module_invoke('login', $edit, $user);
// If the user wants to be remembered, set the proper cookie such
// that the session won't expire.
$path = preg_replace("/.+\/\/[^\/]+(.*)/", "\$1/", $base_url);
setcookie(session_name(), session_id(), FALSE, $path);
// Redirect the user to the page he logged on from.
drupal_goto($edit['destination']);
}
......
......@@ -807,11 +807,6 @@ function user_login($edit = array(), $msg = '') {
user_module_invoke('login', $edit, $user);
// If the user wants to be remembered, set the proper cookie such
// that the session won't expire.
$path = preg_replace("/.+\/\/[^\/]+(.*)/", "\$1/", $base_url);
setcookie(session_name(), session_id(), FALSE, $path);
// Redirect the user to the page he logged on from.
drupal_goto($edit['destination']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment