mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
#64236 additional session.save_path parameter documented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331944 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c6dbfa1792
commit
7de6d4baeb
1 changed files with 11 additions and 4 deletions
|
@ -257,23 +257,30 @@
|
|||
<function>session_save_path</function>.
|
||||
</simpara>
|
||||
<para>
|
||||
There is an optional N argument to this directive that determines
|
||||
There is an optional <literal>N</literal> argument to this directive that determines
|
||||
the number of directory levels your session files will be spread
|
||||
around in. For example, setting to <literal>'5;/tmp'</literal>
|
||||
may end up creating a session file and location like
|
||||
<literal>/tmp/4/b/1/e/3/sess_4b1e384ad74619bd212e236e52a5a174If
|
||||
</literal>. In order to use N you must create all of these
|
||||
</literal>. In order to use <literal>N</literal> you must create all of these
|
||||
directories before use. A small shell script exists in
|
||||
<filename>ext/session</filename> to do this, it's called
|
||||
<filename>mod_files.sh</filename>, with a Windows version called
|
||||
<filename>mod_files.bat</filename>. Also note that if N is
|
||||
<filename>mod_files.bat</filename>. Also note that if <literal>N</literal> 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 <literal>N</literal>, be sure to surround
|
||||
<literal>session.save_path</literal> in
|
||||
"quotes" because the separator (<literal>;</literal>) is
|
||||
also used for comments in &php.ini;.
|
||||
</para>
|
||||
<para>
|
||||
The file storage module creates files using mode 600 by default.
|
||||
This default can be changed with the optional <literal>MODE</literal> argument:
|
||||
<literal>N;MODE;/path</literal> where <literal>MODE</literal> is the octal
|
||||
representation of the mode.
|
||||
Setting <literal>MODE</literal> does not affect the process umask.
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
If you leave this set to a world-readable directory, such as
|
||||
|
|
Loading…
Reference in a new issue