From b63d529a15b76a19d88066bc09d514a54ddc57a7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Nov 2004 22:39:55 +0000 Subject: - Patch #12515 by Goba: fixed problem with cookies not being set properly, causing users getting logged out. --- modules/user.module | 5 ----- modules/user/user.module | 5 ----- 2 files changed, 10 deletions(-) (limited to 'modules') 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']); } -- cgit v1.2.3