From 212de99fde7d34770029aa8c7f16002ed2c6efe7 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 21 Apr 2004 19:14:18 +0000 Subject: [PATCH] Set the base path before every session_start in case we loose track of the base_path (couldn't reproduce it myself but in certain configs this fixed a cookie issue) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7209 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/global.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/functions/global.php b/functions/global.php index 84db5ec5..f2e65559 100644 --- a/functions/global.php +++ b/functions/global.php @@ -281,9 +281,12 @@ function sqsession_destroy() { */ function sqsession_is_active() { - + $sessid = session_id(); if ( empty( $sessid ) ) { + // Set the path again. + sqgetGlobalVar('base_uri',$base_uri,SQ_SESSION); + session_set_cookie_params (0, $base_uri); session_start(); } } -- 2.25.1