diff options
-rw-r--r-- | modules/user.module | 5 | ||||
-rw-r--r-- | modules/user/user.module | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/modules/user.module b/modules/user.module index 68fcc0b4c..fbaf7ddad 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 68fcc0b4c..fbaf7ddad 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']); } |