��Щ��������Ϊ�� 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����ô������ִ���Զ��������գ�������Ϣ�� php.ini������������� N ������Ҫȷ���� session.save_path ��ֵ��˫���� "quotes" ����������Ϊ�ָ����ֺţ� ;���� 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 ��ֵ���ǹ�����ͬһ���ط��洢�Ự���ݣ��������С��ֵ�Ľű����������ݡ�������£��� 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 �����������ѣ������û������п������ղؼ��д���һ�������Ự 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.