What if session_start fails in php
This article mainly shows you "what to do about session_start failure in php", which is easy to understand and clear, hoping to help you solve your doubts. Let the editor lead you to study and learn this article "how to do session_start failure in php".
1. Error message:
Session_start (): Cannot find serialization handler 'redis'-session startup failed
2. The cause of the error:
The reason for this error is that when PHP is configured, session's serialized handle options (php_serialize, php, php_binary, wddx) do not have the option of redis, but when I set it to redis, it leads to an error. For the specific reason, please see the official document of php, php official explanation, please click
The error configuration is as follows:
Session.serialize_handler=redis
3. Solution:
The session.serialize_handler in php.ini can be set to php. The correct configuration is as follows:
Session.serialize_handler=php above is all the content of this article "what to do if session_start fails in php". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!