diff --git a/modules/user.module b/modules/user.module index 68fcc0b4c873a3183a63324f59ab1401cacbe29a..fbaf7ddad19474f27090d42efab86b3632862182 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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']); } diff --git a/modules/user/user.module b/modules/user/user.module index 68fcc0b4c873a3183a63324f59ab1401cacbe29a..fbaf7ddad19474f27090d42efab86b3632862182 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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']); }