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

How to load Phalcon\Http\Cookie?

Hi,

I'm new to Phalcon framework and trying my best to learn more. At the moment I'm stuck at setting up cookies with encryption. I would appreciate if someone could give me an example on how should I load Cookies service properly with the encryption method. My current services.php is default. Also if I could get a link to a specific article where I could find more services which I could load depending on my requirement with examples that would make my work a lot easier.

Thanks!



2.9k
edited Jan '15

I get "Encryption key cannot be empty" error. Could I be missing to setup the encryption key?

Edit: I was missing the global key.