..  include:: /Includes.rst.txt

..  _feature-107802-1770827507:

=========================================================================
Feature: #107802 - Support username and password in Redis session backend
=========================================================================

See :issue:`107802`

Description
===========

Since Redis 6.0, it is possible to authenticate against Redis using both a username and
a password. Prior to this version, authentication was only possible with a password. With
this patch, you can now configure the TYPO3 Redis session backend as follows:

..  code-block:: php
    :caption: config/system/additional.php

    $GLOBALS['TYPO3_CONF_VARS']['SYS']['session']['BE']
        = [
            'backend' => \TYPO3\CMS\Core\Session\Backend\RedisSessionBackend::class,
            'options' => [
                'database' => 0,
                'hostname' => 'redis',
                'port' => 6379,
                'username' => 'redis',
                'password' => 'redis',
            ]
        ];


Impact
======

The "password" configuration option of the Redis session backend is now typed as a
`array|string`. Setting this configuration option with an array is deprecated and
will be removed in 15.0.

..  index:: LocalConfiguration, ext:core
