Home >Backend Development >PHP Tutorial >php5 download Detailed description of session setting parameters in the PHP5 configuration file
;Mode for processing session access (default: files)
session.save_handler = files
;session file storage path (default: /tmp)
session.save_path = /tmp
;session uses cookie function (default: Start 1)
session.use_cookies = 1
;Name of session (default: PHPSESSID)
session.name = PHPSESSID
;Auto start (default: off 0, can be changed to 1 here)
session.auto_start = 0
;The lifetime of the cookie used by the session, in seconds (default: disappears when the browser is closed 0)
session.cookie_lifetime = 0
;The path of the cookie used by the session (default: the same as domian or the root path /)
session.cookie_path = /
;The domain name of the session cookie (default: empty)
session.cookie_domain =
;The way to process continuous data, this function is only used internally by the WDDX module or PHP (default: php)
session.serialize_handler = php
;Carry out garbage collection at a rate of one thousandth
;Probability of garbage collection (default: 1)
session.gc_probability = 1
;Set the process ratio, (php5 new parameter, default : 1000)
session.gc_divisor = 1000
; The lifetime before (garbage collection) is processed (default: 1440 [seconds])
session.gc_maxlifetime = 1440
; There is a BUG in PHP 4.2 and previous versions, even if You have disabled "Allow registration of global variables". It still allows you to initialize a SESSION value in the global variable scope
; PHP 4.3 and later versions will issue corresponding warnings, and you can disable the warnings. In PHP5, only you enable it bug_compat_42(=ON), the warning will be displayed.
session.bug_compat_42, 0
session.bug_compat_warn = 1
;Session checks whether the session still exists when reorganizing (default: empty)
session.referer_check =
;Specially set Set the length of the session value (default: off)
session.entropy_length = 0
; Specially set the session value file
session.entropy_file =
; Use cache limiter (default: no cache)
session.cache_limiter = nocache
; Use cache lifetime
session.cache_expire = 180
; Use sid value (session_id) transfer mode (based on security, default: off)
session.use_trans_sid = 0
; Select a HASH function, 0 is MD5 (128 Bit strength), 1 is SHA-1 (160 bit strength)
session.hash_function = 0
; Define how many bits are stored per character when converting binary hash data into some readable data.
; 4 bits : 0-9, a-f
; 5 bits: 0-9, a-v
; 6 bits: 0-9, a-z, A-Z, “-”, “,”
session.hash_bits_per_character = 5
; URL redirect tag
url_rewriter.tags = “a=href,area=href,frame=src,input=src,form=fakeentry”
Remember to restart the Apache server.
The above introduces the detailed setting parameters of php5 download in the PHP5 configuration file, including the content of php5 download. I hope it will be helpful to friends who are interested in PHP tutorials.