#2520·phpredis

Predis 6.0.2 Azure problem

Author: asua-devCreated Jul 10, 2024Updated Mar 23, 2026

Expected behaviour

Is expected store session in Azure Redis server with php extension configuration:

session.save_handler=redis session.save_path=tls://xxx.redis.cache.windows.net:6380?database=DBID&auth=AUTH_TOKEN

Actual behaviour

Php throw warning, notice and error - session_start(): Redis connection not avaiable session_start(): Failed to read session data Redis (path: tls://xxx.redis.cache.windows.net:6380?database....)

I'm seeing this behaviour on

  • OS: Docker - Alpine 3.20, host Oracle Linux 8
  • Redis: Azure redis 6.0
  • PHP: 8.3.8
  • phpredis: 6.0.2 (on version 5.3.7 everything works fine)

Steps to reproduce, backtrace or example script

` <?php ini_set('session.save_handler', 'redis'); ini_set('session.save_path', 'tls://xxxxx.redis.cache.windows.net:6380?database=1&auth=AUTH_TOKEN');

session_start(); $_SESSION['test'] = 'test_value'; echo 'Session data: ' . $_SESSION['test'];

`

I've checked

  • [ x] There is no similar issue from other users
  • Issue isn't fixed in develop branch