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

Cookies problem

I have a problem with cookies. Phalcon just return null for value domain and path when i do it like this : $this->di->get('cookies')->get('session');. But when i dump like this :

var_dump($_COOKIE);

it returns array:

array(3) { ["_GPSLSC"]=> string(0) "" ["fbm_1378546129142404"]=> string(23) "base_domain=.jurigag.me" ["session"]=> string(26) "n64r7m1n6mlr993gpdpnadb8j0" }

so there are cookie, what's going on ?

Also i mean getValue() return just nothing, when var_dump($this->di->get('cookies')->get('session')); there are value when i previously set it

If the cookie is not sent to the client it will not retrieved via cookies->get()