Home >Backend Development >PHP Tutorial >Session setting instructions_PHP tutorial
[Session]
session.save_handler = files ; Control method for saving/retrieving data
session.save_path = C:win emp ; Parameters passed to the controller when save_handler is set to a file,
; This is the path where the data files will be saved.
session.use_cookies = 1 ; Whether to use cookies
session.name = PHPSESSID
; The name of the session used in cookies
session.auto_start = 0 ; Initialize session when request starts
session.cookie_lifetime = 0 ; It is the cookie storage time in seconds,
; or when it is 0, until the browser is restarted
session.cookie_path = / ; The effective path of the cookie
session.cookie_domain = ; Valid domain of cookie
session.serialize_handler = php ; Controller used to connect data
; php is the standard controller of PHP.
session.gc_probability = 1 ; Probability as a percentage that the 'garbage collection' process
will be started on each session initialization.
session.gc_maxlifetime = 1440 ; After the number of seconds indicated by the number here, the saved data will be considered
; 'garbage' and cleaned up by the gc process.