I set the cookie looks like this is my service
$di->set('cookies', function() {
$cookies = new Phalcon\Http\Response\Cookies();
return $cookies;
});
And by the way the method $cookies->setEncryption(false); specified in this documentation https://docs.phalcon.io/en/latest/reference/cookies.html#encryption-decryption-of-cookies does not work
I'm trying to (at the time of authorization) to get username of cookies, doing so
$username = $this->cookies->get('username'); $username_v = $username->getValue();
$username_v var_dump show string(32) "admin" that is not (5)
For this reason I can not get the data from the database using a login from cookies, help solve the problem