diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-11-03 22:39:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-11-03 22:39:55 +0000 |
commit | b63d529a15b76a19d88066bc09d514a54ddc57a7 (patch) | |
tree | a72961219db263da1c776ea30064d077a9cf0b21 /modules | |
parent | bd6ae69345dd6450e8480a647daae3c323cff095 (diff) | |
download | brdo-b63d529a15b76a19d88066bc09d514a54ddc57a7.tar.gz brdo-b63d529a15b76a19d88066bc09d514a54ddc57a7.tar.bz2 |
- Patch #12515 by Goba: fixed problem with cookies not being set properly, causing users getting logged out.
Diffstat (limited to 'modules')
-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']); } |