diff --git a/reference/session/ini.xml b/reference/session/ini.xml index 5f9616a865..c8b8554a9d 100644 --- a/reference/session/ini.xml +++ b/reference/session/ini.xml @@ -257,23 +257,30 @@ session_save_path. - There is an optional N argument to this directive that determines + There is an optional N argument to this directive that determines the number of directory levels your session files will be spread around in. For example, setting to '5;/tmp' may end up creating a session file and location like /tmp/4/b/1/e/3/sess_4b1e384ad74619bd212e236e52a5a174If - . In order to use N you must create all of these + . In order to use N you must create all of these directories before use. A small shell script exists in ext/session to do this, it's called mod_files.sh, with a Windows version called - mod_files.bat. Also note that if N is + mod_files.bat. Also note that if N is used and greater than 0 then automatic garbage collection will not be performed, see a copy of &php.ini; for further - information. Also, if you use N, be sure to surround + information. Also, if you use N, be sure to surround session.save_path in "quotes" because the separator (;) is also used for comments in &php.ini;. + + The file storage module creates files using mode 600 by default. + This default can be changed with the optional MODE argument: + N;MODE;/path where MODE is the octal + representation of the mode. + Setting MODE does not affect the process umask. + If you leave this set to a world-readable directory, such as