View Issue Details

IDProjectCategoryView StatusLast Update
0000558WackoWikiconfigpublic2021-03-13 13:09
ReporterAnrDaemon Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version6.0.0 
Summary0000558: CACHE_SESSION_DIR fixed to an inaccessible directory
DescriptionCACHE_SESSION_DIR is hard set to /tmp, which is often inaccessible in specific server configurations.

Looking over it, the entire constants.php seems wrong to me. It shouldn't be stored in repository like that, but instead generated from present platform configuration when first accessed the ~/wacko/setup/.
Additional Informationhttps://wackowiki.org/doc/Dev/Release/R6.0/InaccessibleSessionDirectory
https://wackowiki.org/doc/Dev/Components/SessionHandling
TagsNo tags attached.

Activities

administrator

2021-03-11 12:47

administrator   ~0001093

Last edited: 2021-03-13 13:09

As you certainly recognized this issue is already in the ToDo list for R6.0 under Installer:

define('CACHE_SESSION_DIR', '/tmp'); is defined in constant.php, and currently not set via the installer.
We might use ini_get('session.save_path') as indicator, BUT we do not use the PHP build in session! -> write value, its a nuisance that the user currently has to do this on his own

I did not further evaluate yet how this issue can be solved. Perhaps we can use ini_get('session.save_path') directly as default when CACHE_SESSION_DIR is not set, so both options are available.
  a. session.save_path (default)
  b. CACHE_SESSION_DIR (for those who want use a different dedicated dir/path)

for patch see
https://wackowiki.org/doc/Dev/Release/R6.0/InaccessibleSessionDirectory

AnrDaemon

2021-03-11 17:18

reporter   ~0001096

This commonly an issue on shared hostings, where session.save_path is redirected into user's profile directory.

I'll see about proof-of-concept patch.

administrator

2021-03-12 10:15

administrator   ~0001097

I created a related wiki page and added a patch, but I'm not sure if this is the proper way to do this.

Issue History

Date Modified Username Field Change
2021-03-07 05:08 AnrDaemon New Issue
2021-03-11 12:47 administrator Note Added: 0001093
2021-03-11 13:03 administrator Note Edited: 0001093
2021-03-11 13:03 administrator Note Edited: 0001093
2021-03-11 13:25 administrator Note Edited: 0001093
2021-03-11 13:39 administrator Note Edited: 0001093
2021-03-11 13:41 administrator Status new => feedback
2021-03-11 17:18 AnrDaemon Note Added: 0001096
2021-03-11 17:18 AnrDaemon Status feedback => new
2021-03-12 08:55 administrator Note Edited: 0001093
2021-03-12 09:14 administrator Additional Information Updated
2021-03-12 09:18 administrator Additional Information Updated
2021-03-12 10:07 administrator Note Edited: 0001093
2021-03-12 10:15 administrator Note Added: 0001097
2021-03-13 13:09 administrator Note Edited: 0001093