Sometimes instead of setting configuration variables via code, you may want to set them via configuration files.
It is highly suggested that you read Configuration and Key/Value Storage first to understand the basics of configuration values.
As per the documentation, a configuration item has several parts. For example the configuration value:
If we split it out into its parts we have:
What this means is that in order to manually set this we need to create a file
<root>/config/application/config which ends up being
Inside of this file we will have some nested arrays in order to set the value, the
configGroup can specify multiple nested arrays (such as in this case).
<?php return [ 'security' => [ 'session' => [ 'invalidate_on_user_agent_mismatch' => false, ] ] ];