Hướng dẫn php_value session gc_maxlifetime - phiên php_value gc_maxlifetime
Hành vi của các chức năng này bị ảnh hưởng bởi các cài đặt trong php.ini. Tùy chọn cấu hình phiên
"các tập tin" Phiên.Auto_Start "0"stringsession.save_handler
defines the name of the handler which is used for storing and retrieving data associated with a session. Defaults to files . Note that individual extensions may register their own save_handler s; registered handlers can be obtained on a per-installation basis by referring to phpinfo(). See also
session_set_save_handler(). session.save_path string session.save_path defines the argument which is passed to the save handler. If you choose the default files handler, this is the path where the files are created. See also
session_save_path(). PHP_INI_PERDIR Phiên.gc_probability "1" phiên.gc_divisor "100" phiên.gc_maxlifetime Only use $_SERVER['HTTP_HOST'] 4
string $_SERVER['HTTP_HOST'] 4 specifies the name of the session which is used as cookie name. It should only contain alphanumeric characters. Defaults to $_SERVER['HTTP_HOST'] 6. See also session_name(). $_SERVER['HTTP_HOST'] 7 bool $_SERVER['HTTP_HOST'] 7 specifies whether the session module starts a session automatically on request startup. Defaults to
$_SERVER['HTTP_HOST'] 9 (disabled). session.save_handler 0 string session.save_handler 0 defines the name of the handler which is used to serialize/deserialize data. PHP serialize format (name session.save_handler 2), PHP internal formats (name session.save_handler 3 and session.save_handler 4) and WDDX are supported (name session.save_handler 5). WDDX is only available, if PHP is compiled with WDDX support. session.save_handler 2 uses plain
serialize/unserialize function internally and does not have limitations that session.save_handler 3 and session.save_handler 4 have. Older serialize handlers cannot store numeric index nor string index contains special characters (session.save_handler 9 and session.save_handler 0) in $_SESSION. Use session.save_handler 2 to avoid numeric index or special character errors at script shutdown. Defaults to session.save_handler 3. session.save_handler 3 int session.save_handler 3 in conjunction with session.save_handler 5 is used to manage
probability that the gc (garbage collection) routine is started. Defaults to session.save_handler 6. See session.gc_divisor for details. session.save_handler 5 int session.save_handler 5 coupled with session.save_handler 3 defines the probability that the gc (garbage collection) process is started on every session initialization. The probability is calculated by using
gc_probability/gc_divisor, e.g. 1/100 means there is a 1% chance that the GC process starts on each request. session.save_handler 5 defaults to files 1. files 2 int files 2 specifies the number of seconds after which data will be seen as 'garbage' and potentially cleaned up. Garbage collection may occur during session start (depending on
session.gc_probability and session.gc_divisor). Defaults to files 4 (24 minutes).
files 6 string files 6 contains the substring you want to check each HTTP Referer for. If the Referer was sent by the client and the substring was not found, the embedded session id will be marked
as invalid. Defaults to the empty string. files 8 string files 8 gives a path to an external resource (file) which will be used as an additional entropy source in the session id creation process. Examples are save_handler 0 or save_handler 1 which are available on many Unix systems. This feature is supported on Windows. Setting save_handler 2 to a non zero value will make PHP use the Windows Random API as entropy source.
save_handler 2 int save_handler 2 specifies the number of bytes which will be read from the file specified above. Defaults to save_handler 8. Removed in PHP 7.1.0. save_handler 9 bool
save_handler 9 specifies whether the module will use strict session id mode. If this mode is enabled, the module does not accept uninitialized session IDs. If an uninitialized session ID is sent from the browser, a new session ID is sent to the browser. Applications are protected from session fixation via session adoption with strict mode. Defaults to $_SERVER['HTTP_HOST'] 9 (disabled).
session.save_path 3 bool session.save_path 3 specifies whether the module will use cookies to store the session id on the client side. Defaults to session.save_handler 6 (enabled). session.save_path 6 bool
session.save_path 6 specifies whether the module will only use cookies to store the session id on the client side. Enabling this setting prevents attacks involved passing session ids in URLs. Defaults to session.save_handler 6 (enabled). session.save_path 9 int session.save_path 9 specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to $_SERVER['HTTP_HOST'] 9. See also
session_get_cookie_params() and session_set_cookie_params().
session.save_path 2 string session.save_path 2 specifies path to set in the session cookie. Defaults to session.save_path 4. See also session_get_cookie_params() and session_set_cookie_params().
session.save_path 5 string session.save_path 5 specifies the domain to set in the session cookie. Default is none at all meaning the host name of the server which generated the cookie according to cookies specification. See also session_get_cookie_params() and
session_set_cookie_params(). session.save_path 7 bool session.save_path 7 specifies whether cookies should only be sent over secure connections. Defaults to session.save_path 9. See also session_get_cookie_params() and
session_set_cookie_params(). N 0 bool Marks the cookie as accessible only through the HTTP protocol. This means that the cookie won't be accessible by scripting languages, such as JavaScript. This setting can effectively help to reduce identity theft through XSS attacks (although it is not supported by
all browsers). N 1 string Allows servers to assert that a cookie ought not to be sent along with cross-site requests. This assertion allows user agents to mitigate the risk of cross-origin information leakage, and provides some protection against cross-site request forgery attacks. Note that this is not supported by all browsers. An empty value means that no SameSite cookie attribute will be set. N 2 and
N 3 mean that the cookie will not be sent cross-domain for POST requests; N 2 will sent the cookie for cross-domain GET requests, while N 3 will not. N 6 string N 6 specifies the cache control method used for session pages. It may be one of the following values: N 8, N 9, "" 00, or "" 01. Defaults to N 8. See also the
session_cache_limiter() documentation for information about what these values mean. "" 03 int "" 03 specifies time-to-live for cached session pages in minutes, this has no effect for nocache limiter. Defaults to "" 05. See also
session_cache_expire(). "" 06 bool "" 06 whether transparent sid support is enabled or not. Defaults to $_SERVER['HTTP_HOST'] 9 (disabled).
"" 09 Chuỗi "" 09 Chỉ định thẻ HTML nào được viết lại để bao gồm ID phiên khi hỗ trợ SID trong suốt được bật. Mặc định là "" 11 "" 12 là thẻ đặc biệt. "" 13 được thêm vào dưới dạng biến biểu mẫu.string "" 09 specifies which HTML tags are rewritten to include session id when transparent sid support is enabled. Defaults to "" 11 "" 12 is special tag. "" 13 is added as form variable.
"" 15 Chuỗi "" 15 Chỉ định máy chủ nào được viết lại để bao gồm ID phiên khi hỗ trợ SID trong suốt được bật. Mặc định cho $_SERVER['HTTP_HOST'] Nhiều máy chủ có thể được chỉ định bởi ",", không có khoảng trống nào được phép giữa các máy chủ. ví dụ. "" 18 "" 19 int "" 19 cho phép bạn chỉ định độ dài của chuỗi ID phiên. Độ dài ID phiên có thể nằm trong khoảng từ 22 đến 256. Mặc định là 32. Nếu bạn cần tương thích, bạn có thể chỉ định 32, 40, v.v. ID phiên dài hơn khó đoán hơn. Ít nhất 32 ký tự được khuyến nghị.string "" 15 specifies which hosts are rewritten to include session id when transparent sid support is enabled. Defaults to $_SERVER['HTTP_HOST'] Multiple
hosts can be specified by ",", no space is allowed between hosts. e.g. "" 18 "" 19 int "" 19 allows you to specify the length of session ID string. Session ID length can be between 22 to 256. The default is 32. If you need compatibility you may specify 32, 40, etc. Longer session ID is harder to guess. At least 32 chars are recommended. Mẹo Khả năng tương thích Lưu ý: Sử dụng 32 thay vì ________ 121 = 0 (MD5) và ________ 122 = 4, ________ 121 = 1 (SHA1) và ________ 122 = 6. Sử dụng 26 thay vì ________ 121 = 0 (MD5) và ________ 122 = 5. Sử dụng 22 thay vì ________ 121 = 0 (MD5) và ________ 122 = 6. Bạn phải định cấu hình các giá trị INI để có ít nhất 128 bit trong ID phiên. Đừng quên đặt một giá trị thích hợp cho
"" 29 int "" 29 cho phép bạn chỉ định số lượng bit trong ký tự ID phiên được mã hóa. Các giá trị có thể là '4' (0-9, a-f), '5' (0-9, a-v) và '6' (0-9, a-z, a-z, "-", ","). Mặc định là 4. Càng nhiều bit dẫn đến ID phiên mạnh hơn. 5 được khuyến nghị giá trị cho hầu hết các môi trường.int "" 29 allows you to specify the number of bits in encoded session ID character. The possible values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", ","). The default is 4. The more bits results in stronger session ID. 5 is recommended value for most environments.
"" 29 int "" 29 cho phép bạn chỉ định số lượng bit trong ký tự ID phiên được mã hóa. Các giá trị có thể là '4' (0-9, a-f), '5' (0-9, a-v) và '6' (0-9, a-z, a-z, "-", ","). Mặc định là 4. Càng nhiều bit dẫn đến ID phiên mạnh hơn. 5 được khuyến nghị giá trị cho hầu hết các môi trường.mixed "" 21 allows you to specify the hash algorithm used to generate the session IDs. '0' means MD5 (128 bits) and '1' means SHA-1 (160 bits). Lưu ý: Đã loại bỏ trong Php 7.1.0.int "" 22 allows you to define how many bits are stored in each character when converting the binary hash data to something readable. The possible values are '4' (0-9, a-f), '5' (0-9, a-v), and '6' (0-9, a-z, A-Z, "-", ","). Lưu ý: Đã loại bỏ trong Php 7.1.0.bool Enables upload progress tracking, populating the $_SESSION variable. Defaults to 1, enabled. "" 39 bool Cleanup the progress information as soon as all POST data has been read (i.e. upload completed). Defaults to 1, enabled.
"" 38 Bool cho phép tải lên theo dõi tiến trình tải lên, điền vào biến $ _Session. Mặc định là 1, được bật. "" 39 BOOL Dọn dẹp Thông tin tiến trình ngay khi tất cả dữ liệu bài đăng đã được đọc (nghĩa là tải lên hoàn tất). Mặc định là 1, được bật.string A prefix used for the upload progress key in the $_SESSION. This key will be concatenated with the value of "" 41 to provide a unique index. Defaults to "upload_progress_". "" 42 string The name of
the key to be used in $_SESSION storing the progress information. See also session.upload_progress.prefix. If "" 41 is not passed or available, upload progressing will not be recorded. Defaults to "PHP_SESSION_UPLOAD_PROGRESS". "" 44 mixed Defines how often the upload progress information should be updated. This can be defined in bytes (i.e. "update progress information after every 100 bytes"), or in percentages (i.e. "update progress information after receiving every 1% of the whole filesize"). Defaults to
"1%". "" 45 int The minimum delay between updates, in seconds. Defaults to "1" (one second). "" 46 bool "" 46, when set to 1, means that session data is only rewritten if it changes. Defaults to 1, enabled. Lưu ý: Rất khuyến khích để giữ cho tính năng này được bật. Tiến trình tải lên sẽ không được đăng ký trừ khi phiên.upload_ProTHER.Enables được bật và $ _POST [ini_get ("session.upload_proTHER.name")] Biến được đặt. Xem Phiên tải lên tiến trình để biết thêm chi tiết về chức năng này.
"" 51Greenreaper ¶ ¶ 8 năm trước
"" 51Thông tin tại thimbleopensource dot com ¶ 7 năm trước
"" 51jlevene tại etisoftware dot com ¶ ¶ 9 năm trước
"" 51li-lingjie ¶ ¶ 4 năm trước
"" 51Wouter ¶ ¶ 12 năm trước
"" 51OHCC tại 163 dot com ¶ ¶ 4 năm trước
Wouter ¶ ¶ 12 năm trước
"" 51OHCC tại 163 dot com ¶ ¶ 12 năm trước
"" 95OHCC tại 163 dot com ¶ ¶ Askapache ¶
"" 51Nicholas ¶ ¶ 4 năm trước
"" 51Wouter ¶ ¶ 12 năm trước
OHCC tại 163 dot com ¶ ¶ Askapache ¶
"" 51Nicholas ¶ ¶ Askapache ¶
"" 51Nicholas ¶ ¶ 00 tại f00n dot com ¶
"" 5114 năm trước ¶ Askapache ¶
Nicholas ¶ ¶ 00 tại f00n dot com ¶
"" 51 |