summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-02-14 18:43:32 +0000
committerDries Buytaert <dries@buytaert.net>2008-02-14 18:43:32 +0000
commit210311903ebedd1c3d764cbd7983e41813d24319 (patch)
tree7e48e595428968eba386b55c6c9545a67f825d81
parent5bdc79db5fd637d695c1bf9b8c9d4afa2d5015c1 (diff)
downloadbrdo-210311903ebedd1c3d764cbd7983e41813d24319.tar.gz
brdo-210311903ebedd1c3d764cbd7983e41813d24319.tar.bz2
- Patch #221364 by chx: removed PHP 4.3 workaround. Oh, yeah.
-rw-r--r--includes/session.inc11
1 files changed, 0 insertions, 11 deletions
diff --git a/includes/session.inc b/includes/session.inc
index 6f3379093..86c7ebfaf 100644
--- a/includes/session.inc
+++ b/includes/session.inc
@@ -91,18 +91,7 @@ function sess_write($key, $value) {
*/
function sess_regenerate() {
$old_session_id = session_id();
-
- // We code around http://bugs.php.net/bug.php?id=32802 by destroying
- // the session cookie by setting expiration in the past (a negative
- // value). This issue only arises in PHP versions before 4.4.0,
- // regardless of the Drupal configuration.
- // TODO: remove this when we require at least PHP 4.4.0
- if (isset($_COOKIE[session_name()])) {
- setcookie(session_name(), '', time() - 42000, '/');
- }
-
session_regenerate_id();
-
db_query("UPDATE {sessions} SET sid = '%s' WHERE sid = '%s'", session_id(), $old_session_id);
}