Through the returned cookie collection, you may access a cookie using the following syntax:
php
$cookie = $request->cookies['name']
if ($cookie !== null) {
$value = $cookie->value;
}
alternatively
$value = $request->cookies->getValue('name');
public getCookies ( ) : |
||
Résultat | the cookie collection. |