From: stekkel Date: Wed, 21 Apr 2004 19:14:18 +0000 (+0000) Subject: Set the base path before every session_start in case we loose track of the X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=212de99fde7d34770029aa8c7f16002ed2c6efe7 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 --- 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(); } }