Set the base path before every session_start in case we loose track of the
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 21 Apr 2004 19:14:18 +0000 (19:14 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 21 Apr 2004 19:14:18 +0000 (19:14 +0000)
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

index 84db5ec529fdc020090151ac540d10da04af4976..f2e6555940cebb6111bd5f53866fc2ed522a635d 100644 (file)
@@ -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();
     }
 }