Redis会话回调错误

时间:2018-07-06 17:07:44

标签: php node.js redis socket.io

我试图第一次使用Redis在php和node.js / Socket.io之间共享用户身份验证,但是在初始设置时出现错误。熟悉Redis的人遇到类似的问题吗?

可在https://gist.github.com/ecentinela/d8a5a8fa08868f633761上找到代码

Warning: session_start(): Session callback expects true/false return value in C:\Apache24\htdocs\redis-test\redis-session-php\redis-session.php on line 46

Warning: session_start(): Session callback expects true/false return value in C:\Apache24\htdocs\redis-test\redis-session-php\redis-session.php on line 46

Warning: session_start(): Failed to initialize storage module: user (path: ) in C:\Apache24\htdocs\redis-test\redis-session-php\redis-session.php on line 46

{
    "_ga": "GA1.1.1281176092.1521216822",
    "_gid": "GA1.1.598584165.1530804160",
    "io": "3hiolWnr5DP2XkpRAAAD",
    "PHPSESSID": "rh67qig3e2vtda4kuk756gerl7"
}{
    "php": "Hello from PHP",
    "cookie": []
}

0 个答案:

没有答案