You can use a Yandex Managed Service for Valkey™ cluster for storing PHP session data. See this tutorial to learn how to prepare the infrastructure for a VM and Yandex Managed Service for Valkey™ using Terraform. See this repository for the configuration files you will need: redis-cluster-non-sharded-and-vm-for-php.tf and redis-cluster-sharded-and-vm-for-php.tf.