mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Only set session.sid_bits_per_character for PHP < 8.4
PHP 8.4 has deprecated `session.sid_bits_per_character` along with `session.sid_length`, as part of a broader effort to standardize session ID generation for improved security and interoperability.
This commit is contained in:
parent
f868f4d9d6
commit
5b2747e9cd
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class PhpSession extends Session
|
|||
if (version_compare(PHP_VERSION, '7.1.0') < 0) {
|
||||
$defaultCookieOptions['hash_function'] = true;
|
||||
$defaultCookieOptions['hash_bits_per_character'] = 5;
|
||||
} else {
|
||||
} elseif (version_compare(PHP_VERSION, '8.4.0') < 0) {
|
||||
$defaultCookieOptions['sid_bits_per_character'] = 5;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue