user_guide_src/source/installation/upgrade_4211.rst
############################### Upgrading from 4.2.10 to 4.2.11 ###############################
Please refer to the upgrade instructions corresponding to your installation method.
Composer Installation App Starter Upgrading <app-starter-upgrading>Composer Installation Adding CodeIgniter4 to an Existing Project Upgrading <adding-codeigniter4-upgrading>Manual Installation Upgrading <installing-manual-upgrading>.. contents:: :local: :depth: 2
Breaking Changes
.. _upgrade-4211-proxyips:
The config value format has been changed. Now you must set your proxy IP address and the HTTP header name for the client IP address pair as an array::
public $proxyIPs = [
'10.0.1.200' => 'X-Forwarded-For',
'192.168.5.0/24' => 'X-Forwarded-For',
];
ConfigException will be thrown for old format config value.
.. _upgrade-4211-session-key:
The key of the session data record for :ref:sessions-databasehandler-driver,
:ref:sessions-memcachedhandler-driver and :ref:sessions-redishandler-driver
has changed. Therefore, any existing session data will be invalidated after
the upgrade if you are using these session handlers.
DatabaseHandler, the id column value in the session table
now contains the session cookie name (Config\App::$sessionCookieName).MemcachedHandler or RedisHandler, the key value contains
the session cookie name (Config\App::$sessionCookieName).There is maximum length for the id column and Memcached key (250 bytes).
If the following values exceed those maximum length, the session will not work properly.
DatabaseHandlerci_session), session cookie name, delimiters, and session id
when using MemcachedHandlerProject Files
Version 4.2.11 did not alter any executable code in project files.
This is a list of all files in the project space that received changes; many will be simple comments or formatting that have no effect on the runtime: