锟斤拷些锟斤拷锟斤拷锟斤拷锟斤拷为锟斤拷 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 锟侥硷拷锟斤拷锟借定锟斤拷锟斤拷锟斤拷只锟角革拷锟斤拷痰母锟斤拷锟斤拷锟�
session.save_handler
string
session.save_path
string
锟斤拷指锟筋还锟斤拷一锟斤拷锟斤拷选锟斤拷 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)锟斤拷
锟斤拷锟斤拷锟斤拷锟斤拷瓒ㄎ伙拷锟饺拷挚啥锟斤拷锟侥柯硷拷锟斤拷锟斤拷锟� /tmp锟斤拷默锟斤拷值锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟较碉拷锟斤拷锟斤拷锟矫伙拷锟叫匡拷锟斤拷通锟斤拷锟斤拷目录锟斤拷锟侥硷拷锟叫憋拷锟狡斤拷峄帮拷锟�
使锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟侥匡拷选目录锟姐级锟斤拷锟斤拷 N 时锟斤拷注锟解,锟斤拷锟节撅拷锟斤拷锟斤拷锟秸撅拷悖拷锟斤拷锟�1锟斤拷锟斤拷2锟斤拷值锟结不太锟斤拷锟斤拷——锟斤拷为锟斤拷锟斤拷要锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷目录锟斤拷锟斤拷锟界,值锟斤拷锟斤拷为 3 锟斤拷要锟斤拷锟侥硷拷系统锟较达拷锟斤拷 64^3 锟斤拷目录锟斤拷锟斤拷锟剿费很讹拷占锟斤拷 inode锟斤拷
锟斤拷锟斤拷锟节撅拷锟皆肯讹拷站锟斤拷锟姐够锟斤拷时锟斤拷锟脚匡拷锟斤拷锟斤拷锟斤拷 N 锟斤拷锟斤拷2锟斤拷
Note: 锟斤拷 PHP 4.3.6 之前锟斤拷Windows 锟矫伙拷锟斤拷锟斤拷锟睫改达拷选锟斤拷锟斤拷使锟斤拷 PHP 锟侥会话锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷指锟斤拷一锟斤拷锟较凤拷路锟斤拷锟斤拷锟斤拷锟界:c:/temp锟斤拷
session.name
string
session.auto_start
boolean
session.serialize_handler
string
session.gc_probability
integer
session.gc_divisor
integer
session.gc_maxlifetime
integer
Note:
锟斤拷锟斤拷锟酵拷慕疟锟斤拷锟斤拷胁锟酵拷锟� session.gc_maxlifetime 锟斤拷值锟斤拷锟角癸拷锟斤拷锟斤拷同一锟斤拷锟截凤拷锟芥储锟结话锟斤拷锟捷o拷锟斤拷锟斤拷锟斤拷锟叫★拷锟街碉拷慕疟锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷荨锟斤拷锟斤拷锟斤拷锟铰o拷锟斤拷 session.save_path 一锟斤拷使锟矫憋拷指锟筋。
session.referer_check
string
session.entropy_file
string
Note: 锟斤拷 PHP 5.4.0 锟斤拷默锟斤拷锟斤拷锟斤拷拢锟� session.entropy_file 锟斤拷 /dev/urandom 锟斤拷 /dev/arandom 锟斤拷锟矫碉拷时锟斤拷使锟斤拷锟斤拷锟角★拷 锟斤拷 PHP 5.3.0 锟叫达拷指锟斤拷默锟斤拷锟斤拷锟秸★拷
session.entropy_length
integer
session.use_strict_mode
boolean
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.cache_limiter
string
session.cache_expire
integer
session.use_trans_sid
boolean
Note: 锟斤拷锟斤拷 URL 锟侥会话锟斤拷锟斤拷然锟斤拷锟� cookie 锟侥会话锟斤拷锟斤拷锟叫革拷锟洁安全锟斤拷锟秸★拷锟斤拷锟斤拷锟矫伙拷锟叫匡拷锟斤拷通锟斤拷 email 锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷效锟侥会话 ID 锟斤拷 URL 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟窖o拷锟斤拷锟斤拷锟矫伙拷锟斤拷锟斤拷锟叫匡拷锟斤拷锟斤拷锟秸藏硷拷锟叫达拷锟斤拷一锟斤拷锟斤拷锟斤拷锟结话 ID 锟斤拷 URL 锟斤拷锟斤拷同锟斤拷锟侥会话 ID 去锟斤拷锟斤拷站锟姐。
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.bug_compat_42
boolean
session.bug_compat_warn
boolean
session.sid_length
integer
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
Note: This setting is introduced in PHP 7.1.0.
session.hash_function
mixed
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
Note:
锟斤拷锟斤拷 PHP 5 锟斤拷锟斤拷锟侥★拷
Note: 锟斤拷锟揭拷锟斤拷锟� XHTML锟斤拷去锟斤拷 form 锟筋并锟节憋拷锟街讹拷前锟斤拷锟斤拷锟� <fieldset> 锟斤拷恰锟�
session.upload_progress.enabled
boolean
session.upload_progress.cleanup
boolean
Note: It is highly recommended to keep this feature enabled.
session.upload_progress.prefix
string
session.upload_progress.name
string
session.upload_progress.freq
mixed
session.upload_progress.min_freq
integer
session.lazy_write
boolean
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.