Runtime Configuration The behaviour of these functions is affected by settings in php.ini. Session configuration options Name
Default | Changeable | Changelog | |
---|---|---|---|
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 | |
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 | "#2" | PHP_INI_ALL | |
session.cookie_secure | "0" | PHP_INI_ALL | Prior to PHP 7.2.0, the default was "#2". |
session.cookie_httponly | "0" | PHP_INI_ALL | Prior to PHP 7.2.0, the default was "#2". |
session.cookie_samesite | "#2" | PHP_INI_ALL | Available as of PHP 7.3.0. |
session.use_strict_mode | "0" | PHP_INI_ALL | |
session.use_cookies | "1" | PHP_INI_ALL | |
session.use_only_cookies | "1" | PHP_INI_ALL | |
session.referer_check | "#2" | 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 | |
session.trans_sid_tags | "a=href,area=href,frame=src,form =" | PHP_INI_ALL | Available as of PHP 7.1.0. |
session.trans_sid_hosts | $_SERVER['HTTP_HOST'] | PHP_INI_ALL | Available as of PHP 7.1.0. |
session.sid_length | "32" | PHP_INI_ALL | Available as of PHP 7.1.0. |
session.sid_bits_per_character | "4" | PHP_INI_ALL | Available as of PHP 7.1.0. |
session.upload_progress.enabled | "1" | PHP_INI_PERDIR | |
session.upload_progress.cleanup | "1" | PHP_INI_PERDIR | |
session.upload_progress.prefix | "upload_progress_" | PHP_INI_PERDIR | |
session.upload_progress.name | "PHP_SESSION_UPLOAD_PRO GRESS" | PHP_INI_PERDIR | |
session.upload_progress.freq | "1%" | PHP_INI_PERDIR | |
session.upload_progress.min_freq | "1" | PHP_INI_PERDIR | |
session.lazy_write | "1" | PHP_INI_ALL | |
session.hash_function | "0" | PHP_INI_ALL | Removed as of PHP 7.1.0. |
session.hash_bits_per_character | "4" | PHP_INI_ALL | Removed as of PHP 7.1.0. |
session.entropy_file | "#2" | PHP_INI_ALL | Removed as of PHP 7.1.0. |
session.entropy_length | "0" | PHP_INI_ALL | Removed as of PHP 7.1.0 |