why this code can not create cookie key validcode.

public function validcodeAction()

        setcookie('validcode', ‘33333’, 0, '/'); 
        //why this code can not create cookie key "validcode", and if you change the key "validcode" and can create code .

Phalcon 3.0.1 PHP 7.0.6

First, it is recommended to us framework methods and not native PHP ones.

Second, post your full response headers here (from a client's perspective), also post your services container definition.

edited Dec '16

You have to use the Cookies Manager instead of setcookie / setrawcookie.

Refer to the: https://docs.phalconphp.com/en/latest/reference/cookies.html

Is "validcode" a keywords ???

sorry, There is something wrong with my browser , then I change aother browser is OK.