Update clean_user_php_sessions to handle valid session.save_path options
Needs Review
The clean_user_php_sessions script which deletes expired PHP session files gets the session save path from the session.save_path INI option. According to the manual here:
https://www.php.net/manual/en/session.configuration.php#ini.session.save-path
The save_path can take the forms /path, or N;/path, or N;MODE;/path. The clean_user_php_sessions script assumes it is the first case only. It should be updated to check for the semicolons and, if present in the save_path, use the value after the last semicolon as the actual path.
Here's the fix that I'm using:
Here's the fix that I'm using:
Replies have been locked on this page!