From 4f94488b554d9892aa6e408dd80e5e3144555745 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 21 Nov 2002 18:25:38 +0000 Subject: - SID will now only be appended when session.use_trans_sid is set. Patch by Kjartan. --- includes/common.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 28086de9b..f4104aaed 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -314,7 +314,9 @@ function drupal_goto($url) { ** is compiled with "--enable-trans-sid". */ - $sid = session_name() . "=" . session_id(); + if (ini_get("session.use_trans_sid")) { + $sid = session_name() . "=" . session_id(); + } if (!session_id() || strstr($url, $sid)) { header("Location: $url"); -- cgit v1.2.3