瀏覽代碼

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)

stekkel 21 年之前
父節點
當前提交
ad94f2adaa
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      functions/global.php

+ 4 - 1
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();
     }
 }