You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
We have been caching sessions with Redis in our Zend Framework 2 project (using zend-session 2.5.2) on PHP 5.6.
After upgrading from PHP 5.6 to PHP 7.0.4, there was a problem with redis session caching, resulting in the following error when users logged in: PHP message: PHP Catchable fatal error: session_regenerate_id(): Failed to create(read) session ID: user.
We currently use a custom save handler to work around this problem:
namespace OurFramework\Session\SaveHandler;
class Cache extends \Zend\Session\SaveHandler\Cache
{
public function read($id)
{
return (string)parent::read($id);
}
}
Maybe this fix could be added to Zend\Session\SaveHandler\Cache.
We have been caching sessions with Redis in our Zend Framework 2 project (using zend-session 2.5.2) on PHP 5.6.
After upgrading from PHP 5.6 to PHP 7.0.4, there was a problem with redis session caching, resulting in the following error when users logged in:
PHP message: PHP Catchable fatal error: session_regenerate_id(): Failed to create(read) session ID: user
.We currently use a custom save handler to work around this problem:
Maybe this fix could be added to
Zend\Session\SaveHandler\Cache
.See this question on stackoverflow, and the discussion here.
The text was updated successfully, but these errors were encountered: