锟斤拷锟斤拷时锟斤拷锟斤拷

锟斤拷些锟斤拷锟斤拷锟斤拷锟斤拷为锟斤拷 php.ini 锟叫碉拷锟斤拷锟斤拷影锟届。

锟结话锟斤拷锟斤拷选锟斤拷
锟斤拷锟斤拷 默锟斤拷 锟斤拷锟睫改凤拷围 锟斤拷锟斤拷锟斤拷志
session.save_path "" PHP_INI_ALL  
session.name "PHPSESSID" PHP_INI_ALL  
session.save_handler "files" PHP_INI_ALL  
session.auto_start "0" PHP_INI_PERDIR  
session.gc_probability "1" PHP_INI_ALL  
session.gc_divisor "100" PHP_INI_ALL 锟斤拷 PHP 4.3.2 锟斤拷锟斤拷谩锟�
session.gc_maxlifetime "1440" PHP_INI_ALL  
session.serialize_handler "php" PHP_INI_ALL  
session.cookie_lifetime "0" PHP_INI_ALL  
session.cookie_path "/" PHP_INI_ALL  
session.cookie_domain "" PHP_INI_ALL  
session.cookie_secure "" PHP_INI_ALL 锟斤拷 PHP 4.0.4 锟斤拷锟斤拷效锟斤拷
session.cookie_httponly "" PHP_INI_ALL 锟斤拷 PHP 5.2.0. 锟斤拷效
session.use_strict_mode "0" PHP_INI_ALL 锟斤拷 PHP 5.5.2. 锟斤拷效
session.use_cookies "1" PHP_INI_ALL  
session.use_only_cookies "1" PHP_INI_ALL 锟斤拷 PHP 4.3.0 锟斤拷锟斤拷谩锟�
session.referer_check "" PHP_INI_ALL  
session.entropy_file "" PHP_INI_ALL  
session.entropy_length "0" PHP_INI_ALL  
session.cache_limiter "nocache" PHP_INI_ALL  
session.cache_expire "180" PHP_INI_ALL  
session.use_trans_sid "0" PHP_INI_ALL 锟斤拷 PHP <= 4.2.3 锟斤拷 PHP_INI_ALL锟斤拷锟斤拷 PHP < 5 锟斤拷 PHP_INI_PERDIR锟斤拷锟斤拷 PHP 4.0.3 锟斤拷锟斤拷谩锟�
session.bug_compat_42 "1" PHP_INI_ALL 锟斤拷 PHP 4.3.0 锟斤拷锟斤拷谩锟�
session.bug_compat_warn "1" PHP_INI_ALL 锟斤拷 PHP 4.3.0 锟斤拷锟斤拷谩锟�
session.hash_function "0" PHP_INI_ALL 锟斤拷 PHP 5.0.0 锟斤拷锟斤拷谩锟�
session.hash_bits_per_character "4" PHP_INI_ALL 锟斤拷 PHP 5.0.0 锟斤拷锟斤拷谩锟�
url_rewriter.tags "a=href,area=href,frame=src,form=,fieldset=" PHP_INI_ALL 锟斤拷 PHP 4.0.4 锟斤拷锟斤拷谩锟�
session.upload_progress.enabled "1" PHP_INI_PERDIR Available since PHP 5.4.0.
session.upload_progress.cleanup "1" PHP_INI_PERDIR Available since PHP 5.4.0.
session.upload_progress.prefix "upload_progress_" PHP_INI_PERDIR Available since PHP 5.4.0.
session.upload_progress.name "PHP_SESSION_UPLOAD_PROGRESS" PHP_INI_PERDIR Available since PHP 5.4.0.
session.upload_progress.freq "1%" PHP_INI_PERDIR Available since PHP 5.4.0.
session.upload_progress.min_freq "1" PHP_INI_PERDIR Available since PHP 5.4.0.
session.lazy_write "1" PHP_INI_ALL Available since PHP 7.0.0.
锟叫癸拷 PHP_INI_* 锟斤拷式锟侥革拷锟斤拷锟斤拷锟斤拷锟诫定锟藉,锟斤拷 锟斤拷锟矫可憋拷锟借定锟斤拷围锟斤拷

锟结话锟斤拷锟斤拷系统支锟斤拷锟斤拷锟斤拷锟斤拷锟窖★拷睿拷锟斤拷锟斤拷锟斤拷约锟斤拷锟� php.ini 锟侥硷拷锟斤拷锟借定锟斤拷锟斤拷锟斤拷只锟角革拷锟斤拷痰母锟斤拷锟斤拷锟�

session.save_handler string
session.save_handler 锟斤拷锟斤拷锟斤拷锟斤拷锟芥储锟酵伙拷取锟斤拷峄帮拷锟斤拷锟斤拷锟斤拷锟斤拷莸拇锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷帧锟侥拷锟轿� files锟斤拷Note that individual extensions may register their own save_handlers; registered handlers can be obtained on a per-installation basis by referring to phpinfo(). 锟轿硷拷 session_set_save_handler()锟斤拷
session.save_path 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锟斤拷windows 锟芥本锟斤拷 mod_files.bat 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷隆锟斤拷锟斤拷锟阶拷锟斤拷锟斤拷使锟斤拷锟斤拷 N 锟斤拷锟斤拷锟斤拷锟揭达拷锟斤拷 0锟斤拷锟斤拷么锟斤拷锟斤拷锟斤拷执锟斤拷锟皆讹拷锟斤拷锟斤拷锟斤拷锟秸o拷锟斤拷锟斤拷锟斤拷息锟斤拷 php.ini锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� N 锟斤拷锟斤拷锟斤拷要确锟斤拷锟斤拷 session.save_path 锟斤拷值锟斤拷双锟斤拷锟斤拷 "quotes" 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷为锟街革拷锟斤拷锟街号o拷 ;锟斤拷锟斤拷 php.ini 锟斤拷也锟斤拷注锟酵凤拷锟脚★拷

锟侥硷拷锟斤拷锟斤拷模锟斤拷默锟斤拷使锟斤拷 mode 600 锟斤拷锟斤拷锟侥硷拷锟斤拷通锟斤拷 锟睫改匡拷选锟斤拷锟斤拷 MODE 锟斤拷锟侥憋拷锟斤拷锟斤拷默锟斤拷锟斤拷为锟斤拷 N;MODE;/path 锟斤拷锟斤拷锟斤拷 MODE 锟斤拷 mode 锟侥八斤拷锟狡憋拷示锟斤拷 MODE 锟斤拷锟矫诧拷影锟斤拷锟斤拷痰锟斤拷锟斤拷锟�(umask)锟斤拷

Warning

锟斤拷锟斤拷锟斤拷锟斤拷瓒ㄎ伙拷锟饺拷挚啥锟斤拷锟侥柯硷拷锟斤拷锟斤拷锟� /tmp锟斤拷默锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟较碉拷锟斤拷锟斤拷锟矫伙拷锟叫匡拷锟斤拷通锟斤拷锟斤拷目录锟斤拷锟侥硷拷锟叫憋拷锟狡斤拷峄帮拷锟�

Caution

使锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥匡拷选目录锟姐级锟斤拷锟斤拷 N 时锟斤拷注锟解,锟斤拷锟节撅拷锟斤拷锟斤拷锟秸撅拷悖拷锟斤拷锟�1锟斤拷锟斤拷2锟斤拷值锟结不太锟斤拷锟斤拷——锟斤拷为锟斤拷锟斤拷要锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷目录锟斤拷锟斤拷锟界,值锟斤拷锟斤拷为 3 锟斤拷要锟斤拷锟侥硷拷系统锟较达拷锟斤拷 64^3 锟斤拷目录锟斤拷锟斤拷锟剿费很讹拷占锟斤拷 inode锟斤拷

锟斤拷锟斤拷锟节撅拷锟皆肯讹拷站锟斤拷锟姐够锟斤拷时锟斤拷锟脚匡拷锟斤拷锟斤拷锟斤拷 N 锟斤拷锟斤拷2锟斤拷

Note: 锟斤拷 PHP 4.3.6 之前锟斤拷Windows 锟矫伙拷锟斤拷锟斤拷锟睫改达拷选锟斤拷锟斤拷使锟斤拷 PHP 锟侥会话锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷指锟斤拷一锟斤拷锟较凤拷路锟斤拷锟斤拷锟斤拷锟界:c:/temp锟斤拷

session.name string
session.name 指锟斤拷锟结话锟斤拷锟斤拷锟斤拷锟斤拷 cookie 锟斤拷锟斤拷锟街★拷只锟斤拷锟斤拷锟斤拷母锟斤拷锟斤拷锟斤拷桑锟侥拷锟轿� PHPSESSID锟斤拷锟轿硷拷 session_name()锟斤拷
session.auto_start boolean
session.auto_start 指锟斤拷锟结话模锟斤拷锟角凤拷锟斤拷锟斤拷锟斤拷始时锟皆讹拷锟斤拷锟斤拷一锟斤拷锟结话锟斤拷默锟斤拷为 0锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷
session.serialize_handler string
session.serialize_handler 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫伙拷锟斤拷锟斤拷锟斤拷锟叫伙拷锟侥达拷锟斤拷锟斤拷锟斤拷锟街★拷 锟斤拷前支锟斤拷 PHP 锟斤拷锟叫伙拷锟斤拷式 (锟斤拷为 php_serialize)锟斤拷 PHP PHP 锟节诧拷锟斤拷式 (锟斤拷为 php 锟斤拷 php_binary) 锟斤拷 WDDX (锟斤拷为 wddx)锟斤拷 锟斤拷锟� PHP 锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷 WDDX 支锟斤拷锟斤拷锟斤拷只锟斤拷锟斤拷 WDDX锟斤拷 锟斤拷 PHP 5.5.4 锟斤拷锟斤拷锟绞癸拷锟� php_serialize锟斤拷 php_serialize 锟斤拷锟节诧拷锟津单碉拷直锟斤拷使锟斤拷 serialize/unserialize 锟斤拷锟斤拷锟斤拷锟斤拷锟揭诧拷锟斤拷锟斤拷 php 锟斤拷 php_binary 锟斤拷锟斤拷锟叫碉拷锟斤拷锟狡★拷 使锟矫较旧碉拷锟斤拷锟叫伙拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 $_SESSION 锟斤拷锟斤拷锟斤拷锟饺诧拷锟斤拷锟斤拷锟斤拷锟斤拷也锟斤拷锟杰帮拷锟斤拷锟斤拷锟斤拷锟街凤拷(| and !) 锟斤拷 使锟斤拷 php_serialize 锟斤拷锟斤拷疟锟斤拷顺锟绞憋拷锟斤拷锟斤拷旨锟斤拷锟斤拷锟斤拷址锟斤拷锟斤拷锟斤拷锟斤拷鲁锟斤拷锟� 默锟斤拷使锟斤拷 php锟斤拷
session.gc_probability integer
session.gc_probability 锟斤拷 session.gc_divisor 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 gc锟斤拷garbage collection 锟斤拷锟斤拷锟斤拷锟秸o拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥革拷锟绞★拷默锟斤拷为 1锟斤拷锟斤拷锟� session.gc_divisor锟斤拷
session.gc_divisor integer
session.gc_divisor 锟斤拷 session.gc_probability 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷每锟斤拷锟结话锟斤拷始锟斤拷时锟斤拷锟斤拷 gc锟斤拷garbage collection 锟斤拷锟斤拷锟斤拷锟秸o拷锟斤拷锟教的革拷锟绞★拷锟剿革拷锟斤拷锟斤拷 gc_probability/gc_divisor 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� 1/100 锟斤拷味锟斤拷锟斤拷每锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 1% 锟侥革拷锟斤拷锟斤拷锟斤拷 gc 锟斤拷锟教★拷session.gc_divisor 默锟斤拷为 100锟斤拷
session.gc_maxlifetime integer
session.gc_maxlifetime 指锟斤拷锟斤拷锟剿讹拷锟斤拷锟斤拷之锟斤拷锟斤拷锟捷就会被锟斤拷为"锟斤拷锟斤拷"锟斤拷锟斤拷锟斤拷锟斤拷锟� 锟斤拷锟斤拷锟窖硷拷锟斤拷锟杰伙拷锟斤拷 session 锟斤拷锟斤拷锟斤拷时锟斤拷始锟斤拷 取锟斤拷锟斤拷session.gc_probability 锟斤拷 session.gc_divisor锟斤拷锟斤拷

Note:

锟斤拷锟斤拷锟酵拷慕疟锟斤拷锟斤拷胁锟酵拷锟� session.gc_maxlifetime 锟斤拷值锟斤拷锟角癸拷锟斤拷锟斤拷同一锟斤拷锟截凤拷锟芥储锟结话锟斤拷锟捷o拷锟斤拷锟斤拷锟斤拷锟叫★拷锟街碉拷慕疟锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷荨锟斤拷锟斤拷锟斤拷锟铰o拷锟斤拷 session.save_path 一锟斤拷使锟矫憋拷指锟筋。

session.referer_check string
session.referer_check 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫匡拷锟� HTTP Referer 锟斤拷锟接达拷锟斤拷锟斤拷锟斤拷突锟斤拷朔锟斤拷锟斤拷锟� Referer 锟斤拷息锟斤拷锟斤拷锟斤拷锟斤拷锟叫诧拷未锟揭碉拷锟斤拷锟接达拷锟斤拷锟斤拷嵌锟斤拷幕峄� ID 锟结被锟斤拷锟轿拷锟叫э拷锟侥拷锟轿拷锟斤拷址锟斤拷锟斤拷锟�
session.entropy_file string
session.entropy_file 锟斤拷锟斤拷锟斤拷一锟斤拷锟斤拷锟解部锟斤拷源锟斤拷锟侥硷拷锟斤拷锟斤拷路锟斤拷锟斤拷锟斤拷锟斤拷源锟斤拷锟节会话 ID 锟斤拷锟斤拷锟斤拷锟斤拷锟叫憋拷锟斤拷锟斤拷锟斤拷锟接碉拷锟斤拷值锟斤拷源锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟� Unix 系统锟铰讹拷锟斤拷锟斤拷锟斤拷 /dev/random 锟斤拷 /dev/urandom锟斤拷 锟斤拷 Windows 锟斤拷锟斤拷 PHP 5.3.3 锟斤拷锟斤拷锟斤拷舜斯锟斤拷堋锟� 锟斤拷锟斤拷 session.entropy_length 为锟斤拷锟斤拷锟街碉拷锟绞� PHP 使锟斤拷 Windows Random API 锟斤拷为锟斤拷值源锟斤拷

Note: 锟斤拷 PHP 5.4.0 锟斤拷默锟斤拷锟斤拷锟斤拷拢锟� session.entropy_file 锟斤拷 /dev/urandom 锟斤拷 /dev/arandom 锟斤拷锟矫碉拷时锟斤拷使锟斤拷锟斤拷锟角★拷 锟斤拷 PHP 5.3.0 锟叫达拷指锟斤拷默锟斤拷锟斤拷锟秸★拷

session.entropy_length integer
session.entropy_length 指锟斤拷锟剿达拷锟斤拷锟斤拷锟斤拷募锟斤拷卸锟饺★拷锟斤拷纸锟斤拷锟斤拷锟侥拷锟轿� 0锟斤拷锟斤拷锟矫o拷锟斤拷
session.use_strict_mode boolean
session.use_strict_mode specifies whether the module will use strict session id mode. If this mode is enabled, the module does not accept uninitialized session ID. If uninitialized session ID is sent from browser, new session ID is sent to browser. Applications are protected from session fixation via session adoption with strict mode. Defaults to 0 (disabled).
session.use_cookies boolean
session.use_cookies 指锟斤拷锟角凤拷锟节客伙拷锟斤拷锟斤拷 cookie 锟斤拷锟斤拷呕峄� ID锟斤拷默锟斤拷为 1锟斤拷锟斤拷锟矫o拷锟斤拷
session.use_only_cookies boolean
session.use_only_cookies 指锟斤拷锟角凤拷锟节客伙拷锟斤拷锟斤拷锟斤拷使锟斤拷 cookie 锟斤拷锟斤拷呕峄� ID锟斤拷锟斤拷锟斤拷锟矫达拷锟借定锟斤拷锟皆凤拷止锟叫癸拷通锟斤拷 URL 锟斤拷锟捷会话 ID 锟侥癸拷锟斤拷锟斤拷锟斤拷锟借定锟斤拷 PHP 4.3.0 锟斤拷拥摹锟斤拷锟絇HP 5.3.0锟斤拷始锟斤拷默锟斤拷值锟斤拷为1锟斤拷锟斤拷锟矫o拷
session.cookie_lifetime integer
session.cookie_lifetime 锟斤拷锟斤拷锟斤拷指锟斤拷锟剿凤拷锟酵碉拷锟斤拷锟斤拷锟斤拷锟� cookie 锟斤拷锟斤拷锟斤拷锟斤拷锟节★拷值为 0 锟斤拷示"直锟斤拷锟截憋拷锟斤拷锟斤拷锟�"锟斤拷默锟斤拷为 0锟斤拷锟轿硷拷 session_get_cookie_params() 锟斤拷 session_set_cookie_params()锟斤拷

Note:

The expiration timestamp is set relative to the server time, which is not necessarily the same as the time in the client's browser.

session.cookie_path string
session.cookie_path 指锟斤拷锟斤拷要锟借定锟结话 cookie 锟斤拷路锟斤拷锟斤拷默锟斤拷为 /锟斤拷锟轿硷拷 session_get_cookie_params() 锟斤拷 session_set_cookie_params()锟斤拷
session.cookie_domain string
session.cookie_domain 指锟斤拷锟斤拷要锟借定锟结话 cookie 锟斤拷锟斤拷锟斤拷锟斤拷默锟斤拷为锟睫o拷锟斤拷示锟斤拷锟斤拷 cookie 锟芥范锟斤拷锟斤拷 cookie 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟轿硷拷 session_get_cookie_params() 锟斤拷 session_set_cookie_params()锟斤拷
session.cookie_secure boolean
session.cookie_secure 指锟斤拷锟角凤拷锟酵拷锟斤拷锟饺拷锟斤拷臃锟斤拷锟� cookie锟斤拷默锟斤拷为 off锟斤拷锟斤拷锟借定锟斤拷 PHP 4.0.4 锟斤拷拥摹锟斤拷渭锟� session_get_cookie_params() 锟斤拷 session_set_cookie_params()锟斤拷
session.cookie_httponly boolean
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_limiter string
session.cache_limiter 指锟斤拷锟结话页锟斤拷锟斤拷使锟矫的伙拷锟斤拷锟斤拷品锟斤拷锟斤拷锟絥one/nocache/private/private_no_expire/public锟斤拷锟斤拷默锟斤拷为 nocache锟斤拷锟轿硷拷 session_cache_limiter()锟斤拷
session.cache_expire integer
session.cache_expire 锟皆凤拷锟斤拷锟斤拷指锟斤拷锟斤拷锟斤拷幕峄耙筹拷锟侥达拷锟斤拷冢锟斤拷锟斤拷瓒拷锟� nocache 锟斤拷锟斤拷锟斤拷品锟斤拷锟斤拷锟叫э拷锟侥拷锟轿� 180锟斤拷锟轿硷拷 session_cache_expire()锟斤拷
session.use_trans_sid boolean
session.use_trans_sid 指锟斤拷锟角凤拷锟斤拷锟斤拷透锟斤拷 SID 支锟街★拷默锟斤拷为 0锟斤拷锟斤拷锟矫o拷锟斤拷

Note: 锟斤拷锟斤拷 URL 锟侥会话锟斤拷锟斤拷然锟斤拷锟� cookie 锟侥会话锟斤拷锟斤拷锟叫革拷锟洁安全锟斤拷锟秸★拷锟斤拷锟斤拷锟矫伙拷锟叫匡拷锟斤拷通锟斤拷 email 锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷效锟侥会话 ID 锟斤拷 URL 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟窖o拷锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷锟叫匡拷锟斤拷锟斤拷锟秸藏硷拷锟叫达拷锟斤拷一锟斤拷锟斤拷锟斤拷锟结话 ID 锟斤拷 URL 锟斤拷锟斤拷同锟斤拷锟侥会话 ID 去锟斤拷锟斤拷站锟姐。

session.trans_sid_tags string
session.trans_sid_tags specifies which HTML tags are rewritten to include session id when transparent sid support is enabled. Defaults to a=href,area=href,frame=src,input=src,form= form is special tag. <input hidden="session_id" name="session_name"> is added as form variable.

Note: Before PHP 7.1.0, url_rewriter.tags was used for this purpose. Since PHP 7.1.0, fieldset is no longer considered as special tag.

session.trans_sid_hosts string
session.trans_sid_hosts specifies which hosts are rewritten to include session id when transparent sid support is enabled. Defaults to $_SERVER['HTTP_HOST'] Multiple hosts can be specified by ",", no space is allowed between hosts. e.g. php.net,wiki.php.net,bugs.php.net
session.bug_compat_42 boolean
PHP 4.2.3 锟皆硷拷锟斤拷锟酵版本锟斤拷一锟斤拷未锟斤拷锟斤拷锟斤拷锟斤拷锟皆o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫伙拷锟斤拷 register_globals 锟斤拷锟斤拷锟矫碉拷锟斤拷锟斤拷锟斤拷锟饺拷址锟轿э拷诔锟绞硷拷锟揭伙拷锟斤拷峄帮拷锟斤拷锟斤拷锟絇HP 4.3.0 锟斤拷锟斤拷锟竭版本锟斤拷锟斤拷使锟矫达拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 session.bug_compat_warn 时锟斤拷锟斤拷锟斤拷锟芥。锟斤拷锟斤拷锟皆o拷锟斤拷锟斤拷锟斤拷锟酵拷锟斤拷乇沾锟窖★拷锟斤拷锟斤拷锟矫★拷
session.bug_compat_warn boolean
PHP 4.2.3 锟皆硷拷锟斤拷锟酵版本锟斤拷一锟斤拷未锟斤拷锟斤拷锟斤拷锟斤拷锟皆o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟矫伙拷锟斤拷 register_globals 锟斤拷锟斤拷锟矫碉拷锟斤拷锟斤拷锟斤拷锟饺拷址锟轿э拷诔锟绞硷拷锟揭伙拷锟斤拷峄帮拷锟斤拷锟斤拷锟絇HP 4.3.0 锟斤拷锟斤拷锟竭版本锟斤拷锟斤拷使锟矫达拷锟斤拷锟斤拷时锟斤拷锟斤拷同时锟斤拷锟斤拷锟斤拷 session.bug_compat_42 锟斤拷 session.bug_compat_warn 时锟斤拷锟斤拷锟斤拷锟芥。
session.sid_length integer
session.sid_length allows you to specify the length of session ID string. Session ID length can be between 22 to 256. The default is 32. If you need compatibility you may specify 32, 40, etc. Longer session ID is harder to guess. At least 32 chars is recommended.

Compatibility Note: Use 32 for session.hash_func=0 (MD5) and session.hash_bits_per_character=4, session.hash_func=1 (SHA1) and session.hash_bits_per_character=6. Use 26 for session.hash_func=0 (MD5) and session.hash_bits_per_character=5. Use 22 for session.hash_func=0 (MD5) and session.hash_bits_per_character=6. You must configure INI values to have at least 128 bits in session ID. Do not forget set appropriate value to session.sid_bits_per_character, otherwise you will have weaker session ID.

Note: This setting is introduced in PHP 7.1.0.

session.sid_bits_per_character integer
session.sid_per_character allows you to specify the number of bits in encoded session ID character. The possible values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", ","). The default is 4. The more bits results in stronger session ID. 5 is recommended value for most environments.

Note: This setting is introduced in PHP 7.1.0.

session.hash_function mixed
session.hash_function 锟斤拷锟斤拷锟矫伙拷指锟斤拷锟斤拷锟缴会话 ID 锟斤拷散锟斤拷锟姐法锟斤拷'0' 锟斤拷示 MD5锟斤拷128 位锟斤拷锟斤拷'1' 锟斤拷示 SHA-1锟斤拷160 位锟斤拷锟斤拷

Since PHP 5.3.0 it is also possible to specify any of the algorithms provided by the hash extension (if it is available), like sha512 or whirlpool. A complete list of supported algorithms can be obtained with the hash_algos() function.

Note:

锟斤拷锟斤拷 PHP 5 锟斤拷锟斤拷锟侥★拷

session.hash_bits_per_character integer
session.hash_bits_per_character 锟斤拷锟斤拷锟矫伙拷锟斤拷锟藉将锟斤拷锟斤拷锟斤拷散锟斤拷锟斤拷锟斤拷转锟斤拷为锟缴讹拷锟侥革拷式时每锟斤拷锟街凤拷锟斤拷哦锟斤拷俑锟斤拷锟斤拷亍锟斤拷锟斤拷锟街滴� '4'锟斤拷0-9锟斤拷a-f锟斤拷锟斤拷'5'锟斤拷0-9锟斤拷a-v锟斤拷锟斤拷锟皆硷拷 '6'锟斤拷0-9锟斤拷a-z锟斤拷A-Z锟斤拷"-"锟斤拷","锟斤拷锟斤拷

Note:

锟斤拷锟斤拷 PHP 5 锟斤拷锟斤拷锟侥★拷

url_rewriter.tags string
url_rewriter.tags 指锟斤拷锟斤拷使锟斤拷透锟斤拷 SID 支锟斤拷时锟斤拷些 HTML 锟斤拷腔岜伙拷薷锟斤拷约锟斤拷锟结话 ID锟斤拷默锟斤拷为 a=href,area=href,frame=src,input=src,form=fakeentry,fieldset=锟斤拷

Note: 锟斤拷锟揭拷锟斤拷锟� XHTML锟斤拷去锟斤拷 form 锟筋并锟节憋拷锟街讹拷前锟斤拷锟斤拷锟� <fieldset> 锟斤拷恰锟�

session.upload_progress.enabled boolean
Enables upload progress tracking, populating the $_SESSION variable. Defaults to 1, enabled.
session.upload_progress.cleanup boolean
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.prefix string
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.name string
The name of the key to be used in $_SESSION storing the progress information. See also session.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.freq mixed
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_freq integer
The minimum delay between updates, in seconds. Defaults to "1" (one second).
session.lazy_write boolean
session.lazy_write, when set to 1, means that session data is only rewritten if it changes. Defaults to 1, enabled.

register_globals 锟斤拷锟斤拷选锟斤拷影锟届到锟结话锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟芥储锟酵恢革拷锟侥★拷

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. See Session Upload Progress for mor details on this functionality.