We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PHP7 (Redis) session_regenerate_id(): Session object destruction failed

I have setup a Vagrant dev environment with PHP7 running under Apache. I am running a Phalcon app I have been working on with PHP5.x. However, I am getting session errors e.g. session_regenerate_id(): Session object destruction failed. I am using the redis session handler. From what I have read, PHP7 handles sessions in a stricter way, and this may be a Redis issue. Has anyone else had similar issues? Is there a fix for this?

By the way, blog.phalcon.io is giving me a blank page!



85.5k

i use this https://github.com/phpredis/phpredis and there are no problems and its in a native way.

you edit your php.ini to tell php to store sessions directly into redis. And it also written in C.

You dont need to tell your app anything.