"session.referer_check contains the substring you want to check each HTTP Referer for. If the Referer was sent by the client and the substring was
not found, the embedded session id will be marked as invalid. Defaults to the empty string."
session.save_path定义了传递给存储处理器的参数。如果选择了默认的 files 文件处理器,则此值是创建文件的路径。默认为/tmp。参见session_save_path()。此指令还有一个可选的 N 参数来决定会话文件分布的目录深度。例如,设定为'5;/tmp'将使创建的会话文件和路径类似于/tmp/4/b/1/e/3/sess_4b1e384ad74619bd212e236e52a5a174If。要使用 N 参数,必须在使用前先创建好这些目录。在ext/session目录下有个小的 shell 脚本名叫mod_files.sh可以用来做这件事。此外注意如果使用了 N 参数并且 N 大于 0,那么将不会执行自动垃圾回收,更多信息见php.ini。另外如果用了 N 参数,要确保将session.save_path的值用双引号 "quotes" 括起来,因为分隔符分号(;)在php.ini中也是注释符号。
session.referer_checkstring session.referer_check包含有用来检查每个 HTTP Referer 的子串。如果客户端发送了 Referer 信息但是在其中并未找到该子串,则嵌入的会话 ID 会被标记为无效。默认为空字符串。 session.entropy_filestring session.entropy_file给出了一个到外部资源(文件)的路径,该资源将在会话 ID 创建进程中被用作附加的熵值资源。例如在许多 Unix 系统下都可以用/dev/random或/dev/urandom。 session.entropy_lengthinteger session.entropy_length指定了从上面的文件中读取的字节数。默认为0(禁用)。 session.use_cookiesboolean session.use_cookies指定是否在客户端用 cookie 来存放会话 ID。默认为1(启用)。 session.use_only_cookiesboolean session.use_only_cookies指定是否在客户端仅仅使用 cookie 来存放会话 ID。。启用此设定可以防止有关通过 URL 传递会话 ID 的攻击。此设定是 PHP 4.3.0 添加的。 session.cookie_lifetimeinteger session.cookie_lifetime以秒数指定了发送到浏览器的 cookie 的生命周期。值为 0 表示“直到关闭浏览器”。默认为0。参见session_get_cookie_params()和session_set_cookie_params()。 session.cookie_pathstring session.cookie_path指定了要设定会话 cookie 的路径。默认为/。参见session_get_cookie_params()和session_set_cookie_params()。 session.cookie_domainstring session.cookie_domain指定了要设定会话 cookie 的域名。默认为无,表示根据 cookie 规范产生 cookie 的主机名。参见session_get_cookie_params()和session_set_cookie_params()。 session.cookie_secureboolean session.cookie_secure指定是否仅通过安全连接发送 cookie。默认为off。此设定是 PHP 4.0.4 添加的。参见session_get_cookie_params()和session_set_cookie_params()。 session.cookie_httponlyboolean
Marks the cookie as accessible only through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such as JavaScript. This setting can effectively help to reduce identity theft through XSS attacks (although it is not supported by all browsers). session.cache_limiterstring session.cache_limiter指定会话页面所使用的缓冲控制方法(none/nocache/private/private_no_expire/public)。默认为nocache。参见session_cache_limiter()。 session.cache_expireinteger session.cache_expire以分钟数指定缓冲的会话页面的存活期,此设定对 nocache 缓冲控制方法无效。默认为180。参见session_cache_expire()。 session.use_trans_sidboolean
session.use_trans_sid指定是否启用透明 SID 支持。默认为0(禁用)。
Note:对于 PHP 4.1.2 或以下版本,可以通过加入--enable-trans-sid配置选项去编译来启用,从 PHP 4.2.0 起,trans-sid 特性总是被编译。基于 URL 的会话管理比基于 cookie 的会话管理有更多安全风险。例如用户有可能通过 email 将一个包含有效的会话 ID 的 URL 发给他的朋友,或者用户总是有可能在收藏夹中存有一个包含会话 ID 的 URL 来以同样的会话 ID 去访问站点。
Cleanup the progress information as soon as all POST data has been read (i.e. upload completed). Defaults to 1, enabled.
Note:It is highly recommended to keep this feature enabled.
session.upload_progress.prefixstring
A prefix used for the upload progress key in the$_SESSION. This key will be concatenated with the value of$_POST[ini_get("session.upload_progress.name")]to provide a unique index.Defaults to "upload_progress_".
session.upload_progress.namestring
The name of the key to be used in$_SESSIONstoring the progress information. See alsosession.upload_progress.prefix.If$_POST[ini_get("session.upload_progress.name")]is not passed or available, upload progressing will not be recorded.Defaults to "PHP_SESSION_UPLOAD_PROGRESS".
session.upload_progress.freqmixed
Defines how often the upload progress information should be updated. This can be defined in bytes (i.e. "update progress information after every 100 bytes"), or in percentages (i.e. "update progress information after receiving every 1% of the whole filesize).Defaults to "1%".
session.upload_progress.min-freqinteger
The minimum delay between updates, in seconds. Defaults to "1" (one second).
Thetrack_varsandregister_globalsconfiguration settings influence how the session variables get stored and restored.
Upload progress will not be registered unless session.upload_progress.enabled is enabled, and the $_POST[ini_get("session.upload_progress.name")] variable is set. SeeSession Upload Progressfor mor details on this functionality. track_vars和register_globals配置选项影响到会话变量是怎样存储和恢复的。