-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
session_set_save_handler error in php7 #11733
Comments
I can reproduce this bug, if i create a class that extends /**
* @param string $sessionId
* @param string $data
* @return bool
*/
public function write($sessionId, $data)
{
parent::write($sessionId, $data);
return true;
} everything works fine. To reproduce: use Phalcon\Session\Adapter;
use Phalcon\Session\Adapter\Redis;
$session = function () use ($configuration): Adapter {
$session = new Redis([
'uniqueId' => 'some-uniqueID',
'lifetime' => 2592000,
'prefix' => 'my-prefix-',
'host' => $configuration->host,
'port' => $configuration->port,
'auth' => $configuration->password,
'persistent' => true,
]);
$session->start();
return $session;
};
// Do some other, irrelevant stuff
$this->di->set('session', $session); Then you can see at the bottom of the page:
Hope this helps. Phalcon-Version: 2.0.11 |
Fixed in the |
@sergeyklay Documentation :
|
I'll check |
Fixed in the |
when use memcache,redis to save session, but
session_set_save_handler->write
has a bug,function write($id, $data)
need bool return, but in the source miss the return 👍/phalcon/session/adapter/redis.zep line:125
so ,i think the follow coding maybe right:
The text was updated successfully, but these errors were encountered: