Rumah > Artikel > pembangunan bahagian belakang > redis添加密码后,存储不了session
ini_set('session.save_handler', 'redis');ini_set('session.save_path', 'tcp://127.0.0.1:6379?auth=test');session_start();$_SESSION['sessionid'] = 'Hello world!';
打开调试后报
Warning: Unknown: Failed to write session data (redis). Please verify that the current setting of session.save_path is correct (tcp://127.0.0.1:6379?auth=test) in Unknown on line 0