diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php index 4948ead2f..6294f5656 100644 --- a/system/libraries/Session/Session.php +++ b/system/libraries/Session/Session.php @@ -356,7 +356,11 @@ class CI_Session { { // Add as many more characters as necessary to reach at least 160 bits $sid_length += (int) ceil((160 % $bits) / $bits_per_character); - ini_set('session.sid_length', $sid_length); + if (PHP_VERSION_ID >= 80400) { + @ini_set('session.sid_length', $sid_length); + } else { + ini_set('session.sid_length', $sid_length); + } } }