[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] tiki-check: session.save_path "not writable" when session.use_strict_mode is enabled

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69f1118957d8f_3818edb83755@gitlab-sidekiq-low-urgency-cpu-bound-v2-66f4bb99bd-55kb8.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
ceeff0b3 by Sandeep D at 2026-04-28T19:41:45+00:00
[FIX] tiki-check: session.save_path "not writable" when session.use_strict_mode is enabled
---
* [FIX] tiki-check: session.save_path "not writable" when session.use_strict_mode is enabled

See merge request tikiwiki/tiki!10076

- - - - -


1 changed file:

- tiki-check.php


Changes:

=====================================
tiki-check.php
=====================================
@@ -1411,6 +1411,12 @@ if ($php_properties['session.save_handler']['setting'] == 'files') {
     $currentSession = session_id();
     session_write_close();
 
+    // Strict mode rejects session IDs from session_create_id() that are not
+    // yet stored, so session_start() would allocate a fresh ID and break the
+    // write/read probe. Disable it for the duration of the check.
+    $strictMode = ini_get('session.use_strict_mode');
+    ini_set('session.use_strict_mode', '0');
+
     $newSession = session_create_id('tikicheck');
     session_id($newSession);
     session_start();
@@ -1422,6 +1428,8 @@ if ($php_properties['session.save_handler']['setting'] == 'files') {
     $writableSessionPath = isset($_SESSION['tikisession']) && count($_SESSION) === 1 && $_SESSION['tikisession'] === 'tikisession';
     session_write_close();
 
+    ini_set('session.use_strict_mode', $strictMode);
+
     session_id($currentSession);
     session_start();
 



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ceeff0b3bd208bcdc0a85726201b8ddabfd283ea

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ceeff0b3bd208bcdc0a85726201b8ddabfd283ea
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.