I'm trying to access cookies I set in my Drupal website. I created two cookies on a form submission :
- with the Drupal funtion =
user_cookie_save(['myfirstcookie' => 'myfirstdata'])
- with the classic PHP function =
setcookie('mysecondcookie', 'myseconddata', time() + (86400 * 30), "/")
My cookies are set, no problem. But, I didn't find how to get them (or one of them) from my Twig templates. The app.request.cookies of Symfony seems to not exist.
Do you have any idea ?