Cakephp 3.5.x and Cookies


I’m not realy new to cakephp but thats my first time with cakephp 3.5.
I’m struggleing with cookies.
As I can see the cookiecoponent is now deprecated. But for me it’s unclear how to use the middleware stuff for cookies. The cookbook is a little bit limited in explanation.

I can not find a easy way to just store a email and a hash in the cookie for “permanent” login.
Is there some tutorial I can read or has someone implemented cookies so I could see a code snippet?

CakeDC/users plugin has implemented it You can try to use it as an example.