Skip to content

Commit

Permalink
Move session save path to tmp
Browse files Browse the repository at this point in the history
`$GLOBALS['TMP_DIR']` was empty causing LSP page sessions to incorrectly save in `lsp_data`.

Changing to the same location as the rest of the site prevents the inode filling up since we have a cron job written by network redux called `php-session-cleanup.sh` which cleans up sesssion files over 10 days.

Closes #173.
  • Loading branch information
tresf authored Nov 8, 2017
1 parent 7ad3ab5 commit 1b69d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/lsp/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ini_set('session.use_trans_sid', false);
ini_set('session.save_handler', 'files');
ini_set('session.save_path', $GLOBALS['TMP_DIR']);
ini_set('session.save_path', $_SERVER["DOCUMENT_ROOT"] . '/../tmp/');
ini_set('arg_separator.output', '&');

session_start();
Expand Down

0 comments on commit 1b69d18

Please sign in to comment.