Browse Source

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 năm trước cách đây
mục cha
commit
ad94f2adaa
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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();
     }
 }